mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 21:19:07 +01:00
[docker] Revert changes as they didn't actually save space
This commit is contained in:
parent
151c6ec9ef
commit
9a2a0b2ca8
10
Dockerfile
10
Dockerfile
@ -7,25 +7,19 @@ 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 .yarnrc.yml ./
|
||||
COPY package.json yarn.lock .pnp.cjs .pnp.loader.mjs ./
|
||||
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
|
||||
COPY packages/iceshrimp-js/package.json packages/iceshrimp-js/package.json
|
||||
|
||||
# Prepare yarn cache
|
||||
COPY .yarn/plugins .yarn/plugins
|
||||
COPY .yarn/cache .yarn/cache
|
||||
RUN --mount=type=cache,target=/iceshrimp/.yarncache cp -Tr .yarncache .yarn
|
||||
|
||||
# Configure corepack and yarn, then install dependencies for compilation
|
||||
# Configure corepack and yarn, and install dev mode dependencies for compilation
|
||||
RUN corepack enable && corepack prepare yarn@stable --activate && yarn
|
||||
|
||||
# For releases please uncomment the commands below
|
||||
# Save space by removing unneeded dependencies from cache
|
||||
#RUN sed -i -E 's/(os|cpu|libc): \[.*\]/\1: \["current"\]/' .yarnrc.yml
|
||||
#RUN yarn cache clean && yarn
|
||||
|
||||
# Save yarn cache
|
||||
RUN --mount=type=cache,target=/iceshrimp/.yarncache rm -rf .yarncache/* && cp -Tr .yarn .yarncache
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user