changes in config

This commit is contained in:
2024-09-29 09:27:52 +05:30
parent a1636c6679
commit ac30a9aabd
5 changed files with 61 additions and 4 deletions

25
Dockerfile Normal file
View File

@ -0,0 +1,25 @@
### STAGE 1: Build ###
FROM node:16.13 AS build
WORKDIR /usr/src/app
COPY package.json package-lock.json ./
RUN npm install --save --legacy-peer-deps
COPY . .
RUN npm run build --prod
### STAGE 2: Run ###
FROM nginx:1.17.1-alpine
# COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /usr/src/app/dist /usr/share/nginx/html
# Expose port 80 to the Docker host, so we can access it
# from the outside.
EXPOSE 80
ENTRYPOINT ["nginx","-g","daemon off;"]