From b544a906ff9df727aa2f72718dfffa5c76b2d24f Mon Sep 17 00:00:00 2001 From: Yadd Date: Thu, 18 Jul 2024 07:23:52 +0400 Subject: [PATCH] Drop nx cache during docker build --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 85c9a874..dd2fc3a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,10 +32,11 @@ COPY landing /usr/src/app/landing # Build and clean -RUN npm install && npm run build && \ - rm -rf node_modules */*/node_modules && \ - npm install --production --ignore-scripts && \ - npm cache clean --force +RUN npm install +RUN npm run build -- --skip-nx-cache +RUN rm -rf node_modules */*/node_modules +RUN npm install --production --ignore-scripts +RUN npm cache clean --force FROM node-minimal as tom-server