Use build output folder; not public folder

This commit is contained in:
dannyrb 2019-05-01 16:39:20 -04:00
parent 3821e8a4d9
commit 6a84c377fc

View File

@ -20,6 +20,6 @@ RUN yarn run build:web
FROM nginx:1.15.5-alpine
RUN rm -rf /etc/nginx/conf.d
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
CMD ["nginx", "-g", "daemon off;"]