production_server

This commit is contained in:
ahmed531998 2023-04-07 00:27:23 +02:00
parent d26e4a9cec
commit 48f8285c65
2 changed files with 27156 additions and 2 deletions

View File

@ -4,8 +4,16 @@ WORKDIR /app
COPY . .
RUN npm install
#RUN npm install
RUN npm ci
CMD ["npm", "start"]
RUN npm run build
# production env
FROM nginx:stable-alpine
COPY --from=build /app/build /usr/share/nginx/html
#EXPOSE 80
#CMD ["npm", "start"]
CMD ["nginx", "-g", "daemon off;"]

27146
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff