summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranatawa12 <anatawa12@icloud.com>2024-06-22 19:45:08 +0900
committerGitHub <noreply@github.com>2024-06-22 19:45:08 +0900
commitb8b4dc50384aa3f146d90b10d7f13f87a4a2232c (patch)
tree002684f393d474d4f9c7547eb0086f0a9b12b0b1
parentrefactor: say bye to the weird groupBy friends (#13975) (diff)
downloadsharkey-b8b4dc50384aa3f146d90b10d7f13f87a4a2232c.tar.gz
sharkey-b8b4dc50384aa3f146d90b10d7f13f87a4a2232c.tar.bz2
sharkey-b8b4dc50384aa3f146d90b10d7f13f87a4a2232c.zip
build: install pnpm with corepack on docker build (#13926)
* build: install pnpm with corepack on build * docs(changelog): Dockerコンテナの立ち上げ時に`pnpm`のインストールで固まることがある問題
-rw-r--r--CHANGELOG.md1
-rw-r--r--Dockerfile4
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e4c4cfe1f0..ca74d71719 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,7 @@
### General
- Feat: 通報を受けた際、または解決した際に、予め登録した宛先に通知を飛ばせるように(mail or webhook) #13705
- Fix: 配信停止したインスタンス一覧が見れなくなる問題を修正
+- Fix: Dockerコンテナの立ち上げ時に`pnpm`のインストールで固まることがある問題
### Client
- Fix: `/about#federation` ページなどで各インスタンスのチャートが表示されなくなっていた問題を修正
diff --git a/Dockerfile b/Dockerfile
index 9fc2d611cd..d6ca6b8cdf 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -82,6 +82,10 @@ RUN apt-get update \
USER misskey
WORKDIR /misskey
+# add package.json to add pnpm
+COPY --chown=misskey:misskey ./package.json ./package.json
+RUN corepack install
+
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/misskey-js/node_modules ./packages/misskey-js/node_modules