dockerfile updated

This commit is contained in:
sumedh
2024-08-15 12:43:51 +05:30
parent 7785a50641
commit 4f169755f7
3 changed files with 3 additions and 5 deletions

View File

@@ -15,13 +15,11 @@ RUN npm install
COPY . ./
FROM builder as prod-builder
RUN npm run build
# it's a good idea to pin this, but for demo purposes we'll leave it as is
FROM nginx:latest as prod
COPY --from=prod-builder /usr/src/app/dist /usr/share/nginx/html
COPY --from=builder /usr/src/app/dist /usr/share/nginx/html
ADD default.conf /etc/nginx/conf.d/default.conf
CMD ["nginx", "-g", "daemon off;"]