From 5083a7ba73b76d424afcf2c09a9df45114dd1399 Mon Sep 17 00:00:00 2001 From: Cyril L'Orphelin <cyril.lorphelin@cc.in2p3.fr> Date: Wed, 5 Feb 2020 13:47:02 +0100 Subject: [PATCH] AMJ yarn command --- .gitlab-ci.yml | 2 +- Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 16d8c467..912b6754 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 15adaf70..213ffe01 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 -- GitLab