fix(ci): install bash in the Docker build stage

The build script now runs every heavy command through
scripts/with-memory-cap.sh, which is bash (arrays, BASH_REMATCH). Alpine's
node image ships busybox ash, not bash, so the builder stage failed with
`sh: bash: not found` (exit 127): ci-deploy.sh could not build the image.

Verified: full docker build passes and compiles all 279 routes.
This commit is contained in:
openhands committed 2026-10-08 17:19:06 +02:00
1 parent 0845f80768
commit d2350a6427
1 file changed
+4 -2
+4 -2
View File
@@ -3,9 +3,11 @@ FROM node:26.10.0-alpine AS migrations
WORKDIR /app
ENV NEXT_TELEMETRY_DISABLED=1
# Installeer git en pnpm v12
# Installeer git, bash en pnpm v12. bash is nodig voor
# scripts/with-memory-cap.sh (gebruikt bashisme zoals arrays en BASH_REMATCH);
# Alpine levert geen bash mee.
RUN --mount=type=cache,target=/var/cache/apk \
apk add --no-cache git \
apk add --no-cache git bash \
&& npm install -g [email protected]
# Stel het PATH zo in dat Alpine pnpm gegarandeerd overal herkent