This commit is contained in:
parent
887cb65533
commit
c6be6eb912
15
Dockerfile
15
Dockerfile
@ -6,10 +6,15 @@ RUN yarn install
|
||||
COPY . .
|
||||
RUN yarn build
|
||||
|
||||
FROM nginx:stable-alpine
|
||||
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
RUN npm install -g serve
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
CMD ["serve", "-s /app/dist", "-l 80"]
|
||||
#
|
||||
#FROM nginx:stable-alpine
|
||||
#
|
||||
#COPY --from=build /app/dist /usr/share/nginx/html
|
||||
#
|
||||
#EXPOSE 80
|
||||
#
|
||||
#CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user