diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-08-22 11:19:38 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-08-22 11:19:38 +0200 |
| commit | ce679fd20d630081fad88e04882d259baa3621f6 (patch) | |
| tree | 6ea1eab8a84c81f569607ed2fdfb754c83490a5e | |
| parent | c647c698f227a351153b1300313260631ec598af (diff) | |
build(docker): clear yarn cache after the deps install
| -rw-r--r-- | Dockerfile | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -8,11 +8,7 @@ ARG APP_ENV=production ENV APP_ENV ${APP_ENV} COPY package.json yarn.lock ./ -RUN yarn install --frozen-lockfile - -# If using npm with a `package-lock.json` comment out above and use below instead -# COPY package.json package-lock.json ./ -# RUN npm ci +RUN yarn install --frozen-lockfile && yarn cache clean # Rebuild the source code only when needed FROM node:16-alpine AS builder |
