From f09fd08ca95b1baac085d06c4ae733b9cf1325c7 Mon Sep 17 00:00:00 2001 From: cde-barros Date: Mon, 19 Feb 2024 17:58:06 +0100 Subject: [PATCH] env shell runnin properly --- Dockerfile.prod | 3 +-- env.sh | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile.prod b/Dockerfile.prod index c844ecb6..b859fac1 100644 --- a/Dockerfile.prod +++ b/Dockerfile.prod @@ -23,7 +23,6 @@ COPY --from=builder /app/build /usr/share/nginx/html/ WORKDIR /usr/share/nginx/html COPY ./env.sh . COPY .env . -RUN touch /usr/share/nginx/html/env-config.js USER root @@ -31,7 +30,7 @@ USER root RUN apk add --no-cache bash # Make our shell script executable -RUN chmod +x env.sh && chmod 777 /usr/share/nginx/html/env-config.js +RUN chmod +x env.sh EXPOSE 8080 diff --git a/env.sh b/env.sh index 73e1051f..8a8c5809 100755 --- a/env.sh +++ b/env.sh @@ -1,8 +1,8 @@ #!/bin/bash # Recreate config file -rm -rf ./env-config.js -touch ./env-config.js +# rm -rf ./env-config.js +# touch ./env-config.js # Add assignment echo "window._env_ = {" >> ./env-config.js