From f37715f5d4f66fc8da76807c2e0b1a7a14e514a2 Mon Sep 17 00:00:00 2001 From: Nimish Date: Tue, 24 Oct 2023 12:21:04 +0530 Subject: [PATCH] fix: install curl when one is root --- frontend/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 0a33ed7f9..a4284a8b5 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -3,6 +3,9 @@ FROM node:alpine AS base # set working directory WORKDIR /app +# install system dependencies +RUN apk add curl + # Add a new user "app" and change ownership of the /app directory RUN addgroup app && adduser -S -G app app && chown -R app:app /app @@ -15,12 +18,9 @@ COPY --chown=app:app package.json yarn.lock ./ # ---- Dependencies ---- FROM base AS dependencies -# install system dependencies -RUN apk add curl - # install node packages RUN yarn install --frozen-lockfile --no-cache && yarn cache clean -# copy production node_modules aside (this is a neat trick to get only production modules) +# copy production node_modules aside RUN cp -R node_modules /tmp/node_modules # install ALL node_modules, including 'devDependencies' RUN yarn install --frozen-lockfile