production_server
This commit is contained in:
parent
d26e4a9cec
commit
48f8285c65
12
Dockerfile
12
Dockerfile
|
@ -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;"]
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue