diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2022-12-08 03:16:05 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-08 03:16:05 +0900 |
| commit | d9541a7db8e8766a140340efa1b303c4c03420cc (patch) | |
| tree | 288483bcfd030e85d00e1f331480b269878b38b3 | |
| parent | 12.120.0-alpha.10 (diff) | |
| download | sharkey-d9541a7db8e8766a140340efa1b303c4c03420cc.tar.gz sharkey-d9541a7db8e8766a140340efa1b303c4c03420cc.tar.bz2 sharkey-d9541a7db8e8766a140340efa1b303c4c03420cc.zip | |
fix: Update Dockerfile (#9292)
- copy .yarn/install-state.gz
- add --immutable to yarn install
| -rw-r--r-- | Dockerfile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile index 0151797a7b..5f8ac9289f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ COPY . ./ RUN apt-get update RUN apt-get install -y build-essential RUN git submodule update --init -RUN yarn install +RUN yarn install --immutable RUN yarn build RUN rm -rf .git @@ -20,6 +20,7 @@ WORKDIR /misskey RUN apt-get update RUN apt-get install -y ffmpeg tini +COPY --from=builder /misskey/.yarn/install-state.gz ./.yarn/install-state.gz COPY --from=builder /misskey/node_modules ./node_modules COPY --from=builder /misskey/built ./built COPY --from=builder /misskey/packages/backend/node_modules ./packages/backend/node_modules |