frontend/Dockerfile

18 lines
268 B
Text
Raw Normal View History

2025-10-12 13:41:28 +03:00
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
2025-10-01 11:04:11 +03:00
FROM nginx:alpine
2025-10-12 13:41:28 +03:00
COPY --from=builder /app/dist/ /usr/share/nginx/html/
2025-10-01 11:04:11 +03:00
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 9080