mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-21 17:37:29 -07:00
[docker] Use corepack yarn version instead of @stable
This commit is contained in:
parent
42aa8b7126
commit
f358c31162
1 changed files with 2 additions and 2 deletions
|
@ -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", "--" ]
|
||||||
|
|
Loading…
Reference in a new issue