mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 01:13:09 +02:00
fix: Update Dockerfile (#9292)
- copy .yarn/install-state.gz - add --immutable to yarn install
This commit is contained in:
parent
733515329a
commit
d9541a7db8
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,7 @@ COPY . ./
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y build-essential
|
RUN apt-get install -y build-essential
|
||||||
RUN git submodule update --init
|
RUN git submodule update --init
|
||||||
RUN yarn install
|
RUN yarn install --immutable
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
RUN rm -rf .git
|
RUN rm -rf .git
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ WORKDIR /misskey
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y ffmpeg tini
|
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/node_modules ./node_modules
|
||||||
COPY --from=builder /misskey/built ./built
|
COPY --from=builder /misskey/built ./built
|
||||||
COPY --from=builder /misskey/packages/backend/node_modules ./packages/backend/node_modules
|
COPY --from=builder /misskey/packages/backend/node_modules ./packages/backend/node_modules
|
||||||
|
|
Loading…
Reference in a new issue