[docker] BuildKit caches break immutable cache, let's stick to immutable lockfile
This commit is contained in:
parent
e5a003d6fb
commit
ed6d5d2db6
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ COPY . ./
|
||||||
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 install dev mode dependencies for compilation
|
# Configure corepack and install dev mode dependencies for compilation
|
||||||
RUN corepack enable && corepack prepare --activate && yarn --immutable --immutable-cache
|
RUN corepack enable && corepack prepare --activate && yarn --immutable
|
||||||
|
|
||||||
# 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