Skip to content

Commit b368180

Browse files
committed
Fix: Update Docker volume and working directory paths in build script to ensure correct container context
1 parent eb8143e commit b368180

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

build.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@
5454
// Mount .git so git log works inside the container
5555
await RunAsync("docker",
5656
"run --rm " +
57-
$"-v \"{astroPath}:/app\" " +
57+
$"-v \"{astroPath}:/app/astro\" " +
5858
$"-v \"{outputPath}:/output\" " +
5959
$"-v \"{gitPath}:/app/.git\" " +
60-
"-w /app " +
60+
"-w /app/astro " +
6161
"-e NODE_OPTIONS=\"--max-old-space-size=8192\" " +
6262
$"-e GITHUB_TOKEN=\"{githubToken}\" " +
6363
"node:24-slim " +
64-
"sh -c \"apt-get update && apt-get install -y git && git config --global --add safe.directory /app && npm ci && npm run build && cp -r dist/. /output/\"",
64+
"sh -c \"apt-get update && apt-get install -y git && git config --global --add safe.directory /app/astro && npm ci && npm run build && cp -r dist/. /output/\"",
6565
configureEnvironment: env => env.Add("MSYS_NO_PATHCONV", "1"));
6666
});
6767

0 commit comments

Comments
 (0)