[docker] Don't run yarn focus, as it's useless due to us using zero installs

Ref: https://yarnpkg.com/cli/workspaces/focus#details
This commit is contained in:
Laura Hausmann 2023-10-19 02:46:16 +02:00
parent 766bbbfa6c
commit f8281c914c
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -29,15 +29,6 @@ COPY . ./
# Build the thing # Build the thing
RUN env NODE_ENV=production yarn build RUN env NODE_ENV=production yarn build
# Prepare yarn cache (production)
RUN --mount=type=cache,target=/iceshrimp/.yarncache_prod cp -Tr .yarncache_prod .yarn
# Trim down the dependencies to only those for production
RUN yarn workspaces focus --all --production
# Save yarn cache (production)
RUN --mount=type=cache,target=/iceshrimp/.yarncache_prod rm -rf .yarncache_prod/* && cp -Tr .yarn .yarncache_prod
## Runtime container ## Runtime container
FROM alpine:3.18 FROM alpine:3.18
WORKDIR /iceshrimp WORKDIR /iceshrimp