diff --git a/.forgejo/workflows/test-build.yaml b/.forgejo/workflows/test-build.yaml index cfa8d2c67..e45aa8f1c 100644 --- a/.forgejo/workflows/test-build.yaml +++ b/.forgejo/workflows/test-build.yaml @@ -20,7 +20,7 @@ jobs: run: | cd /iceshrimp cp -Tr /iceshrimp-caches/yarn .yarn - yarn + yarn --immutable --immutable-cache rm -rf /iceshrimp-caches/yarn/* && cp -Tr .yarn /iceshrimp-caches/yarn - name: Build the shrimp run: | diff --git a/Dockerfile b/Dockerfile index cf78a647d..69fc49efb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ COPY . ./ RUN --mount=type=cache,target=/iceshrimp/.yarncache cp -Tr .yarncache .yarn # Configure corepack and install dev mode dependencies for compilation -RUN corepack enable && corepack prepare --activate && yarn +RUN corepack enable && corepack prepare --activate && yarn --immutable --immutable-cache # Save yarn cache RUN --mount=type=cache,target=/iceshrimp/.yarncache rm -rf .yarncache/* && cp -Tr .yarn .yarncache