update Dockerfile

This commit is contained in:
2026-06-24 13:38:07 +03:00
parent 47c712b3e0
commit f50c31df0f
8 changed files with 301 additions and 3 deletions
+2 -1
View File
@@ -2,12 +2,13 @@
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm install --force
COPY . .
RUN npm run build
# Stage 2: Serve the application with Nginx
FROM nginx:1.25-alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY --from=builder /app/src/public /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]