fix(docker): ビルドに使用した pnpm を runner にコピーする (MisskeyIO#969)
This commit is contained in:
parent
2b84095c12
commit
ad75a15612
1 changed files with 2 additions and 1 deletions
|
@ -46,7 +46,7 @@ RUN apt-get update \
|
||||||
WORKDIR /misskey
|
WORKDIR /misskey
|
||||||
|
|
||||||
COPY --link pnpm-lock.yaml ./
|
COPY --link pnpm-lock.yaml ./
|
||||||
RUN npm install -g pnpm@10
|
RUN npm install -g pnpm@10 && mkdir -p /root/.local/share/pnpm/.tools
|
||||||
RUN --mount=type=cache,target=/root/.local/share/pnpm/store,sharing=locked \
|
RUN --mount=type=cache,target=/root/.local/share/pnpm/store,sharing=locked \
|
||||||
pnpm fetch --ignore-scripts
|
pnpm fetch --ignore-scripts
|
||||||
|
|
||||||
|
@ -81,6 +81,7 @@ WORKDIR /misskey
|
||||||
COPY --chown=misskey:misskey pnpm-lock.yaml ./
|
COPY --chown=misskey:misskey pnpm-lock.yaml ./
|
||||||
RUN npm install -g pnpm@10
|
RUN npm install -g pnpm@10
|
||||||
|
|
||||||
|
COPY --chown=misskey:misskey --from=target-builder /root/.local/share/pnpm/.tools ./.local/share/pnpm/.tools
|
||||||
COPY --chown=misskey:misskey --from=target-builder /misskey/node_modules ./node_modules
|
COPY --chown=misskey:misskey --from=target-builder /misskey/node_modules ./node_modules
|
||||||
COPY --chown=misskey:misskey --from=target-builder /misskey/packages/backend/node_modules ./packages/backend/node_modules
|
COPY --chown=misskey:misskey --from=target-builder /misskey/packages/backend/node_modules ./packages/backend/node_modules
|
||||||
COPY --chown=misskey:misskey --from=target-builder /misskey/packages/misskey-js/node_modules ./packages/misskey-js/node_modules
|
COPY --chown=misskey:misskey --from=target-builder /misskey/packages/misskey-js/node_modules ./packages/misskey-js/node_modules
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue