Files
help/Dockerfile
T
danak f74cdce249
Build and Deploy Docker Images / build_and_deploy (push) Has been cancelled
Update Dockerfile
comment mirror
2026-06-09 18:38:28 +00:00

19 lines
403 B
Docker

FROM node:22-alpine AS builder
# ENV NPM_CONFIG_REGISTRY=https://mirror-npm.runflare.com
WORKDIR /build
COPY package*.json ./
RUN npm ci --legacy-peer-deps
COPY . ./
RUN npm run build
FROM nginx:stable-alpine AS production-stage
COPY --from=builder /build/dist /usr/share/nginx/html
COPY --from=builder /build/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]