[docker] Fix yarn cache not being loaded due to missing files in dependency yarn pass

This commit is contained in:
Laura Hausmann 2023-11-17 00:08:18 +01:00
parent bf64af37af
commit 3a02f5492f
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605

View File

@ -7,7 +7,7 @@ WORKDIR /iceshrimp
RUN apk add --no-cache --no-progress git alpine-sdk vips-dev python3 nodejs-current npm vips
# Copy only the dependency-related files first, to cache efficiently
COPY package.json yarn.lock .pnp.cjs .pnp.loader.mjs ./
COPY package.json yarn.lock .pnp.cjs .pnp.loader.mjs .yarnrc.yml .env.yarn ./
COPY packages/backend/package.json packages/backend/package.json
COPY packages/client/package.json packages/client/package.json
COPY packages/sw/package.json packages/sw/package.json