From f358c311621c3bd55006d0eabe683755d3fcdeac Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Sun, 5 Nov 2023 15:19:30 +0100 Subject: [PATCH] [docker] Use corepack yarn version instead of @stable --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9764b2a47..83807dd63 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ 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 -RUN corepack enable && corepack prepare yarn@stable --activate && yarn +RUN corepack enable && corepack prepare --activate && yarn # Save yarn cache RUN --mount=type=cache,target=/iceshrimp/.yarncache rm -rf .yarncache/* && cp -Tr .yarn .yarncache @@ -46,7 +46,7 @@ COPY --from=build /iceshrimp/built /iceshrimp/built COPY --from=build /iceshrimp/packages/backend/built /iceshrimp/packages/backend/built COPY --from=build /iceshrimp/packages/backend/assets/instance.css /iceshrimp/packages/backend/assets/instance.css -RUN corepack enable && corepack prepare yarn@stable --activate +RUN corepack enable && corepack prepare --activate ENV NODE_ENV=production VOLUME "/iceshrimp/files" ENTRYPOINT [ "/sbin/tini", "--" ]