fix nginx container copying from wrong folder

This commit is contained in:
Jinrui 2023-04-10 14:46:25 +08:00 committed by Wentao Lyu
parent 956d919751
commit 478814ff1b

View file

@ -31,7 +31,7 @@ CMD ["npm", "start"]
# Optional: for client with nginx routing
FROM nginx:stable-alpine AS nginx-client
WORKDIR /usr/share/nginx/html
COPY --from=react-client /client/public /usr/share/nginx/html
COPY --from=react-client /client/dist /usr/share/nginx/html
# Add your nginx.conf
COPY /client/nginx.conf /etc/nginx/conf.d/default.conf
ENTRYPOINT ["nginx", "-g", "daemon off;"]