From ce679fd20d630081fad88e04882d259baa3621f6 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 22 Aug 2022 11:19:38 +0200 Subject: build(docker): clear yarn cache after the deps install --- Dockerfile | 6 +----- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3