diff options
| author | anatawa12 <anatawa12@icloud.com> | 2024-06-22 19:45:08 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-22 19:45:08 +0900 |
| commit | b8b4dc50384aa3f146d90b10d7f13f87a4a2232c (patch) | |
| tree | 002684f393d474d4f9c7547eb0086f0a9b12b0b1 /Dockerfile | |
| parent | refactor: say bye to the weird groupBy friends (#13975) (diff) | |
| download | sharkey-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`のインストールで固まることがある問題
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 4 |
1 files changed, 4 insertions, 0 deletions
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 |