This commit is contained in:
parent
887cb65533
commit
c6be6eb912
15
Dockerfile
15
Dockerfile
@ -6,10 +6,15 @@ RUN yarn install
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
FROM nginx:stable-alpine
|
RUN npm install -g serve
|
||||||
|
|
||||||
COPY --from=build /app/dist /usr/share/nginx/html
|
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
CMD ["serve", "-s /app/dist", "-l 80"]
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
#
|
||||||
|
#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