Changed how we enable/disable test mode in the web container.

master
Pacman Ghost 4 years ago
parent 8ec19b2f94
commit ea9999054b
  1. 1
      web/Dockerfile
  2. 3
      web/docker/env

@ -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

@ -0,0 +1,3 @@
# This file will be copied into the container as the React .env file.
REACT_APP_FLASK_URL = http://localhost:5000
Loading…
Cancel
Save