mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -07:00
[docker] Update Dockerfile
This commit is contained in:
parent
f8281c914c
commit
5e4c0fd912
1 changed files with 6 additions and 1 deletions
|
@ -17,9 +17,14 @@ COPY packages/iceshrimp-js/package.json packages/iceshrimp-js/package.json
|
||||||
COPY .yarn/cache .yarn/cache
|
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, then install dependencies for compilation
|
||||||
RUN corepack enable && corepack prepare yarn@stable --activate && yarn
|
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
|
# 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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue