Files
vod-system/frontend/Dockerfile
Dylan De Faoite 4c06a9484b
All checks were successful
CI / Maven unit tests (push) Successful in 14s
CI / Build and push images (push) Successful in 1m22s
CI / Deploy to server (push) Successful in 10s
build(frontend): update docker image to use production env
2026-08-17 18:24:09 +01:00

13 lines
314 B
Docker

# --- Build stage ---
FROM node:20-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN --mount=type=cache,target=/root/.npm npm ci
COPY . .
RUN npm run build
# --- Production stage ---
FROM nginx:1.27-alpine AS prod
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]