From a227a2664ab057641d9f259979ad9776d8349726 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 22 Jun 2023 11:37:33 +0100 Subject: [PATCH] Reduce image size --- packages/server/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/server/Dockerfile b/packages/server/Dockerfile index 07cc10bf9d..a526538b71 100644 --- a/packages/server/Dockerfile +++ b/packages/server/Dockerfile @@ -38,9 +38,9 @@ RUN apt update && apt upgrade -y \ COPY package.json . COPY dist/yarn.lock . -RUN yarn install --production=true -# Remove unneeded data from file system to reduce image size -RUN yarn cache clean && apt-get remove -y --purge --auto-remove g++ make python \ +RUN yarn install --production=true \ + # Remove unneeded data from file system to reduce image size + && yarn cache clean && apt-get remove -y --purge --auto-remove g++ make python \ && rm -rf /tmp/* /root/.node-gyp /usr/local/lib/node_modules/npm/node_modules/node-gyp COPY dist/ dist/