Files
nuzlocke-tracker/frontend/Dockerfile.prod
Renovate Bot 7d46ae5a7f
Some checks failed
CI / backend-tests (pull_request) Failing after 1m12s
CI / frontend-tests (pull_request) Successful in 28s
chore(deps): update node docker tag to v25
2026-03-20 22:02:24 +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;"]