Skip to content

Commit

Permalink
fix: Update Dockerfile (#9292)
Browse files Browse the repository at this point in the history
- copy .yarn/install-state.gz
- add --immutable to yarn install
  • Loading branch information
tamaina authored Dec 7, 2022
1 parent 7335153 commit d9541a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit d9541a7

Please sign in to comment.