aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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