Use build output folder; not public folder
This commit is contained in:
parent
3821e8a4d9
commit
6a84c377fc
@ -20,6 +20,6 @@ RUN yarn run build:web
|
|||||||
FROM nginx:1.15.5-alpine
|
FROM nginx:1.15.5-alpine
|
||||||
RUN rm -rf /etc/nginx/conf.d
|
RUN rm -rf /etc/nginx/conf.d
|
||||||
COPY conf /etc/nginx
|
COPY conf /etc/nginx
|
||||||
COPY --from=builder /usr/src/app/public /usr/share/nginx/html
|
COPY --from=builder /usr/src/app/build /usr/share/nginx/html
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user