From 94a5daf0c02690704716620da52ad4612e060027 Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Tue, 8 Apr 2025 10:30:24 +0200 Subject: [PATCH] install yarn with npm instead of apt --- Dockerfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index ff28f9d..d7411b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,15 +21,9 @@ RUN apt install -yqq zip unzip # install PHP 8.3 RUN apt install -yqq php8.3-cli php8.3-common php8.3-curl php8.3-imagick php8.3-intl php8.3-mbstring php8.3-opcache php8.3-readline php8.3-xml php8.3-zip -# install nvm & nodeJS +# install nvm & nodeJS & yarn RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash -RUN . /root/.bashrc && nvm install 22.14.0 && nvm use 22.14.0 - -# install yarn -RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /usr/share/keyrings/yarnkey.gpg >/dev/null -RUN sh -c 'echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list' -RUN apt update -RUN apt install -yqq yarn +RUN . /root/.bashrc && nvm install 22.14.0 && nvm use 22.14.0 && npm install -g yarn # install git RUN apt install -yqq git