volleyball-dev-frontend/Dockerfile
2025-06-02 16:42:16 +00:00

12 lines
239 B
Docker

# 1. Build Stage
FROM node:20-alpine AS builder
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build
# 2. Serve Stage
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf