diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 05e08465362f5124fcd92f6ed155fcd877a9f0fa..5b09bf5cbed6d144757c7400ff90590b7d961d21 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -27,7 +27,7 @@ job_test:
   stage: test
   script:
     - cd tms
-    - echo "${env_test}" > .env
+    - mv .env.template .env
 
 ## Install composer
     - curl -sS https://getcomposer.org/installer | php
diff --git a/Dockerfile b/Dockerfile
index 0a400a43e09f095354dc4f55d79044343edeaf9d..15adaf70090502762bf4152429709eba9ce78532 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -26,8 +26,8 @@ RUN git clone https://gitlab.in2p3.fr/cc-in2p3-dev/TMS tms
 RUN ls -lah
 WORKDIR /var/www/html/tms/tms
 
-RUN echo "${env_deploy}" > .env
-RUN echo "${env_deploy}" > .env.test
+RUN mv .env.template .env
+
 RUN ls -ahl
 
 RUN curl -sS https://getcomposer.org/installer | php