From 5e4c0fd9129dcf457a2e89f35a450c325cc04c54 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Thu, 19 Oct 2023 03:23:07 +0200 Subject: [PATCH] [docker] Update Dockerfile --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9764b2a47..cbee81eab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,9 +17,14 @@ COPY packages/iceshrimp-js/package.json packages/iceshrimp-js/package.json COPY .yarn/cache .yarn/cache RUN --mount=type=cache,target=/iceshrimp/.yarncache cp -Tr .yarncache .yarn -# Configure corepack and yarn, and install dev mode dependencies for compilation +# Configure corepack and yarn, then install dependencies for compilation RUN corepack enable && corepack prepare yarn@stable --activate && yarn +# For releases please uncomment the commands below +# Save space by removing unneeded dependencies from cache +#RUN sed -i -E 's/(os|cpu|libc): \[.*\]/\1: \["current"\]/' .yarnrc.yml +#RUN yarn cache clean && yarn + # Save yarn cache RUN --mount=type=cache,target=/iceshrimp/.yarncache rm -rf .yarncache/* && cp -Tr .yarn .yarncache