From 8f23d4e1310e26d0c6c0af24201edfbf7f67d6fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Gessler?= <36667834+gessfred@users.noreply.github.com> Date: Sun, 7 Jan 2024 23:03:55 +0000 Subject: [PATCH] fix webapp docker image --- app/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Dockerfile b/app/Dockerfile index fc2291b..89e25c0 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -6,8 +6,9 @@ COPY ./package.json /app RUN npm install COPY ./src ./src COPY ./public/ ./public/ -RUN NODE_OPTIONS=--openssl-legacy-provider REACT_APP_API_URL="https://sequel.gessfred.xyz/api" npm run build -RUN ls build/static && echo 'Build output [OK]' +COPY *.config.js . +COPY index.html . +RUN REACT_APP_API_URL="https://sequel.gessfred.xyz/api" npm run build RUN rm -rf node_modules/ COPY ./serve.sh . RUN chmod u+wrx serve.sh