auth-server/frontend/Dockerfile
renovate_bot 06ffa3ee68
Some checks are pending
ci / backend-test (push) Successful in 9m29s
ci / build (push) Waiting to run
ci / chart (push) Blocked by required conditions
ci / backend-docker (push) Blocked by required conditions
ci / build-2 (push) Blocked by required conditions
ci / build-1 (push) Successful in 3m23s
ci / frontend-docker (push) Successful in 0s
ci / frontend-test (push) Successful in 33s
Update cgr.dev/chainguard/nginx Docker digest to d660885
2026-11-18 23:02:10 +00:00

16 lines
538 B
Docker

# Build the SPA, then serve it from an unprivileged nginx (port 8080, runs as uid 101).
ARG NODE_IMAGE=node:26-alpine
ARG NGINX_IMAGE=cgr.dev/chainguard/nginx@sha256:d660885b01f715c21d4bcece4457bef7440cbc8d349b8d5931900cb08b935bdc
FROM ${NODE_IMAGE} AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM ${NGINX_IMAGE}
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY security-headers.inc /etc/nginx/security-headers.inc
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 8080