summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranatawa12 <anatawa12@icloud.com>2024-02-16 16:44:37 +0900
committerGitHub <noreply@github.com>2024-02-16 16:44:37 +0900
commitf41c78a6e30f808113c3c8fb2ca6ab3ad88636b6 (patch)
treec25f059747356ddd6509526c597d988de1557a71
parentchore(deps): bump actions/setup-node from 3.8.1 to 4.0.2 (#13307) (diff)
downloadsharkey-f41c78a6e30f808113c3c8fb2ca6ab3ad88636b6.tar.gz
sharkey-f41c78a6e30f808113c3c8fb2ca6ab3ad88636b6.tar.bz2
sharkey-f41c78a6e30f808113c3c8fb2ca6ab3ad88636b6.zip
build: docker buildのpnpm i実行時にNODE_ENV=productionが指定されるようにする (#13329)
-rw-r--r--Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index a8d3dbcd89..22c203f5e5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -27,11 +27,11 @@ COPY --link ["packages/misskey-js/package.json", "./packages/misskey-js/"]
COPY --link ["packages/misskey-reversi/package.json", "./packages/misskey-reversi/"]
COPY --link ["packages/misskey-bubble-game/package.json", "./packages/misskey-bubble-game/"]
+ARG NODE_ENV=production
+
RUN --mount=type=cache,target=/root/.local/share/pnpm/store,sharing=locked \
pnpm i --frozen-lockfile --aggregate-output
-COPY --link . ./
-
ARG NODE_ENV=production
RUN git submodule update --init
@@ -57,6 +57,8 @@ COPY --link ["packages/misskey-js/package.json", "./packages/misskey-js/"]
COPY --link ["packages/misskey-reversi/package.json", "./packages/misskey-reversi/"]
COPY --link ["packages/misskey-bubble-game/package.json", "./packages/misskey-bubble-game/"]
+ARG NODE_ENV=production
+
RUN --mount=type=cache,target=/root/.local/share/pnpm/store,sharing=locked \
pnpm i --frozen-lockfile --aggregate-output