From 6d5ca5a3e17f6180c422539ba5f1b6669aa8d536 Mon Sep 17 00:00:00 2001 From: sabaimran Date: Fri, 19 Jul 2024 16:06:38 +0530 Subject: [PATCH] yarn clean cache before build --- Dockerfile | 2 +- prod.Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 217f5f73..693db86b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,7 @@ ENV PYTHONPATH=/app/src:$PYTHONPATH # Go to the directory src/interface/web and export the built Next.js assets WORKDIR /app/src/interface/web -RUN bash -c "yarn install --verbose && yarn ciexport" +RUN bash -c "yarn cache clean && yarn install --verbose && yarn ciexport" WORKDIR /app # Run the Application diff --git a/prod.Dockerfile b/prod.Dockerfile index 418e070a..f767ee93 100644 --- a/prod.Dockerfile +++ b/prod.Dockerfile @@ -29,7 +29,7 @@ ENV PYTHONPATH=/app/src:$PYTHONPATH # Go to the directory src/interface/web and export the built Next.js assets WORKDIR /app/src/interface/web -RUN bash -c "yarn install --verbose && yarn ciexport" +RUN bash -c "yarn cache clean && yarn install --verbose && yarn ciexport" WORKDIR /app # Run the Application