aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-08-22 11:19:38 +0200
committerArmand Philippot <git@armandphilippot.com>2022-08-22 11:19:38 +0200
commitce679fd20d630081fad88e04882d259baa3621f6 (patch)
tree6ea1eab8a84c81f569607ed2fdfb754c83490a5e
parentc647c698f227a351153b1300313260631ec598af (diff)
build(docker): clear yarn cache after the deps install
-rw-r--r--Dockerfile6
1 files changed, 1 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index 4e335b1..1e0c64c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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