Browse Source

Update of back Dockerfile for deployment

Jérôme BUISINE 1 year ago
parent
commit
afcb85128c
2 changed files with 2 additions and 1 deletions
  1. 1 0
      .gitignore
  2. 1 1
      back.Dockerfile

+ 1 - 0
.gitignore

@@ -5,6 +5,7 @@ package-lock.json
 # local env files
 .env.local
 .env.*.local
+.python-version
 
 # Log files
 npm-debug.log*

+ 1 - 1
back.Dockerfile

@@ -16,7 +16,7 @@ CMD if [ "$SERVE_CLIENT" == "true" ] ; \
   then \
     ([ -f ./experimentConfig.js ] && \
       echo "Experiment configuration found" \
-      || echo "Experiment configuration not found, copying default" && cp experimentConfig.default.js experimentConfig.js) && \
+      || (echo "Experiment configuration not found, copying default" && cp experimentConfig.default.js experimentConfig.js)) && \
     NODE_ENV=test yarn test && \
     yarn run app:build && \
     yarn run server:start ; \