fix(docker): use Debian-based nginx for ARM64 QEMU compatibility

Alpine's apk triggers fail under QEMU emulation on ARM64 builds.
Switch to nginx:1 (Debian-based) which works reliably with QEMU.
This commit is contained in:
Johannes Millan 2025-12-14 13:15:03 +01:00
parent 0e17203d0a
commit 5ca64347ef

View file

@ -36,12 +36,12 @@ COPY . .
RUN UNSPLASH_KEY=$UNSPLASH_KEY UNSPLASH_CLIENT_ID=$UNSPLASH_CLIENT_ID npm run env && npm run lint && npm run buildFrontend:prodWeb
# Production stage
FROM nginx:1-alpine
FROM nginx:1
ENV PORT=80
# Install runtime dependencies
RUN apk add --no-cache jq
RUN apt-get update && apt-get install -y --no-install-recommends jq && rm -rf /var/lib/apt/lists/*
# Copy built app and configs
COPY --from=build /app/dist/browser /usr/share/nginx/html