Files
nuzlocke-tracker/frontend/Dockerfile.prod
Renovate Bot e979b875ec
All checks were successful
CI / backend-tests (pull_request) Successful in 28s
CI / frontend-tests (pull_request) Successful in 29s
chore(deps): update node docker tag to v25
2026-03-21 10:49:23 +00:00

22 lines
342 B
Docker

# Production Dockerfile for the frontend
# Stage 1: Build
FROM node:25-slim AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# Stage 2: Serve
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]