[docker] Use corepack yarn version instead of @stable

This commit is contained in:
Laura Hausmann 2023-11-05 15:19:30 +01:00
parent 42aa8b7126
commit f358c31162
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605

View File

@ -18,7 +18,7 @@ COPY .yarn/cache .yarn/cache
RUN --mount=type=cache,target=/iceshrimp/.yarncache cp -Tr .yarncache .yarn 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, 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 # Save yarn cache
RUN --mount=type=cache,target=/iceshrimp/.yarncache rm -rf .yarncache/* && cp -Tr .yarn .yarncache 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/built /iceshrimp/packages/backend/built
COPY --from=build /iceshrimp/packages/backend/assets/instance.css /iceshrimp/packages/backend/assets/instance.css 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 ENV NODE_ENV=production
VOLUME "/iceshrimp/files" VOLUME "/iceshrimp/files"
ENTRYPOINT [ "/sbin/tini", "--" ] ENTRYPOINT [ "/sbin/tini", "--" ]