diff --git a/web/Dockerfile b/web/Dockerfile index 3f657c8..d1dbaa1 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -9,6 +9,7 @@ COPY package.json /app/package.json RUN npm install COPY . /app/ ARG ENABLE_TESTS +COPY docker/env /app/.env RUN if [ -n "$ENABLE_TESTS" ]; then echo -e "\nREACT_APP_TEST_MODE=1" >>/app/.env ; fi RUN npm run build diff --git a/web/docker/env b/web/docker/env new file mode 100644 index 0000000..312417a --- /dev/null +++ b/web/docker/env @@ -0,0 +1,3 @@ +# This file will be copied into the container as the React .env file. + +REACT_APP_FLASK_URL = http://localhost:5000