Skip to content

Commit

Permalink
#1228809 [DockerFiles] Add 'yarn cache clean' on front images to redu…
Browse files Browse the repository at this point in the history
…ce the size of these images (saves 2Go)
  • Loading branch information
botisSmile committed May 24, 2023
1 parent 9e0f468 commit 7fd1878
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion front/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ ENV NEXT_TELEMETRY_DISABLED 1
COPY . ./

RUN set -xe; \
yarn install --frozen-lockfile;
yarn install --frozen-lockfile; \
yarn cache clean;



Expand Down
1 change: 1 addition & 0 deletions front/docker-entrypoint-pwa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ then
cd gally-admin
yarn install --frozen-lockfile;
yarn build
yarn cache clean
cd node_modules
rm -rf react react-dom
ln -Ts ../../node_modules/react react
Expand Down

0 comments on commit 7fd1878

Please sign in to comment.