The CI runner is ARM64 and buildx was running npm ci under QEMU amd64 emulation, causing a V8 crash. Use --platform=$BUILDPLATFORM on the build stage so Node runs natively, matching the server Dockerfile. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
402 B
Docker
18 lines
402 B
Docker
FROM --platform=$BUILDPLATFORM node:22-alpine AS build
|
|
WORKDIR /app
|
|
|
|
COPY package.json package-lock.json ./
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM nginx:1.27-alpine
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/templates/default.conf.template
|
|
|
|
# Default API URL — override via K8s env or docker run -e
|
|
ENV CAMELEER_API_URL=http://cameleer3-server:8081
|
|
|
|
EXPOSE 80
|