From d05311c34a37cc73f61527c9291455a56930b6d2 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Thu, 25 Apr 2024 11:09:10 +0100 Subject: [PATCH] Dockerfile: run yarn install as metacpan-web --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fd2acb9c9b..0f747e97e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,8 +15,6 @@ RUN curl -sL https://deb.nodesource.com/setup_18.x | bash \ COPY . /metacpan-web/ WORKDIR /metacpan-web -RUN yarn install --verbose && yarn cache clean - RUN cpanm --notest App::cpm \ && cpm install -g Carton \ && useradd -m metacpan-web -g users \ @@ -27,6 +25,8 @@ RUN chown -R metacpan-web:users /metacpan-web USER metacpan-web:users +RUN yarn install --verbose && yarn cache clean + EXPOSE 5001 # Runs "/usr/bin/dumb-init -- /my/script --with --args"