docker update

This commit is contained in:
2025-10-16 18:40:43 +05:30
parent e40c6c5364
commit 742fc5bb92

View File

@ -2,12 +2,12 @@
FROM node:18-alpine as build
WORKDIR /app
COPY package*.json ./
RUN npm ci
RUN npm ci --legacy-peer-deps
COPY . .
RUN npm run build --configuration production
RUN npm run build -- --configuration production
# Stage 2: Serve via Nginx
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
CMD ["nginx", "-g", "daemon off;"]