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