diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 16d8c4675053e1c297500c02f195aa80b5347a11..912b675497a1a4f3de7daf1268b2f9572e809908 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -34,7 +34,7 @@ job_test:
     - php composer.phar install
 
 ## Install yarn and assets
-    - curl -L https://npmjs.org/install.sh | sudo sh
+
     - npm cache clean -f
     - npm install -g n
     - n stable
diff --git a/Dockerfile b/Dockerfile
index 15adaf70090502762bf4152429709eba9ce78532..213ffe012ef86a4f8f1afae60e448f0f62c3209a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -38,8 +38,8 @@ RUN npm install -g n
 RUN n stable
 RUN curl -o- -L https://yarnpkg.com/install.sh | bash
 RUN export PATH="$HOME/.yarn/bin:$PATH"
-RUN yarn install
-RUN  yarn encore dev
+RUN /usr/bin/yarn install
+RUN  /usr/bin/yarn encore dev
 
 EXPOSE 8000/tcp
 CMD symfony server:start