From 478814ff1be5d85a998e9a937fa7f38e238a5d62 Mon Sep 17 00:00:00 2001 From: Jinrui Date: Mon, 10 Apr 2023 14:46:25 +0800 Subject: [PATCH] fix nginx container copying from wrong folder --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8188236a0..118bfee8f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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;"]