From c51764124d7af08b707aed20fc1eb77651bc34a2 Mon Sep 17 00:00:00 2001 From: riku6460 <17585784+riku6460@users.noreply.github.com> Date: Fri, 5 Jan 2024 05:49:20 +0900 Subject: [PATCH] =?UTF-8?q?Docker=20=E3=82=A4=E3=83=A1=E3=83=BC=E3=82=B8?= =?UTF-8?q?=E3=83=93=E3=83=AB=E3=83=89=E6=99=82=E3=81=AE=20pnpm=20i=20?= =?UTF-8?q?=E5=BE=8C=E3=81=AB=20pnpm=20rebuild=20=E3=82=92=E5=AE=9F?= =?UTF-8?q?=E8=A1=8C=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=20(Missk?= =?UTF-8?q?eyIO#317)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ba1d1ba29f..73efee5dec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ WORKDIR /misskey COPY --link pnpm-lock.yaml ./ RUN --mount=type=cache,target=/root/.local/share/pnpm/store,sharing=locked \ - pnpm fetch + pnpm fetch --ignore-scripts COPY --link ["pnpm-workspace.yaml", "package.json", "./"] COPY --link ["scripts", "./scripts"] @@ -29,7 +29,8 @@ COPY --link ["packages/frontend/package.json", "./packages/frontend/"] COPY --link ["packages/sw/package.json", "./packages/sw/"] COPY --link ["packages/misskey-js/package.json", "./packages/misskey-js/"] -RUN pnpm i --frozen-lockfile --aggregate-output --offline +RUN pnpm i --frozen-lockfile --aggregate-output --offline \ + && pnpm rebuild -r COPY --link . ./ @@ -53,14 +54,15 @@ WORKDIR /misskey COPY --link pnpm-lock.yaml ./ RUN --mount=type=cache,target=/root/.local/share/pnpm/store,sharing=locked \ - pnpm fetch + pnpm fetch --ignore-scripts COPY --link ["pnpm-workspace.yaml", "package.json", "./"] COPY --link ["scripts", "./scripts"] COPY --link ["packages/backend/package.json", "./packages/backend/"] COPY --link ["packages/misskey-js/package.json", "./packages/misskey-js/"] -RUN pnpm i --frozen-lockfile --aggregate-output --offline +RUN pnpm i --frozen-lockfile --aggregate-output --offline \ + && pnpm rebuild -r FROM --platform=$TARGETPLATFORM node:${NODE_VERSION}-slim AS runner