[docker] BuildKit caches break immutable cache, let's stick to immutable lockfile

This commit is contained in:
Laura Hausmann 2023-11-19 04:40:44 +01:00
parent e5a003d6fb
commit ed6d5d2db6
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -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