Files
cameleer-server/ui/Dockerfile
hsiegeln c73b512cd9
Some checks failed
CI / build (push) Successful in 58s
CI / docker (push) Successful in 1m0s
CI / deploy (push) Failing after 22s
Fix UI Docker build: use native platform for npm ci
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>
2026-03-13 14:08:09 +01:00

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