Parcourir la source

Update of back Dockerfile for deployment

Jérôme BUISINE il y a 4 ans
Parent
commit
afcb85128c
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  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 ; \