From f8281c914c5bdd041c10ce8412bf31e90f4bde77 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Thu, 19 Oct 2023 02:46:16 +0200 Subject: [PATCH] [docker] Don't run yarn focus, as it's useless due to us using zero installs Ref: https://yarnpkg.com/cli/workspaces/focus#details --- Dockerfile | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index a27791f0d..9764b2a47 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,15 +29,6 @@ COPY . ./ # Build the thing RUN env NODE_ENV=production yarn build -# Prepare yarn cache (production) -RUN --mount=type=cache,target=/iceshrimp/.yarncache_prod cp -Tr .yarncache_prod .yarn - -# Trim down the dependencies to only those for production -RUN yarn workspaces focus --all --production - -# Save yarn cache (production) -RUN --mount=type=cache,target=/iceshrimp/.yarncache_prod rm -rf .yarncache_prod/* && cp -Tr .yarn .yarncache_prod - ## Runtime container FROM alpine:3.18 WORKDIR /iceshrimp