frontend/Dockerfile
2025-10-12 13:41:28 +03:00

18 lines
No EOL
268 B
Docker

FROM node:24.10-alpine3.22 AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --prefer-offline --no-audit
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=builder /app/dist/ /usr/share/nginx/html/
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 9080