mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +01:00
[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:
parent
766bbbfa6c
commit
f8281c914c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user