From 35229cd31bb0dc2af0d473396f3ff8a3dd4225f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=A9o=20M=C3=A9vollon?= Date: Mon, 2 Oct 2023 11:36:43 +0200 Subject: [PATCH] fix: npm belongs to user 1000 --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 18126a5..6c49553 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,9 +41,11 @@ RUN curl -sL https://nodejs.org/dist/v18.18.0/node-v18.18.0-linux-x64.tar.xz | \ tar -C /usr/local/lib -Jxf - ENV PATH="${PATH}:/usr/local/lib/node-v18.18.0-linux-x64/bin" -# Yarn -RUN npm i -g yarn && \ - # Set env for all users - sed -i 's@PATH=.*@PATH='"${PATH}"'@g' /etc/environment +# Set environment for all users +# PATH variable has been extended where necessary previously in this file +RUN sed -i 's@PATH=.*@PATH='"${PATH}"'@g' /etc/environment USER 1000 + +# Yarn +RUN npm i -g yarn