mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 13:17:08 +00:00
parent
8eab1ff750
commit
707ce0de2d
@ -19,6 +19,7 @@ RUN apt-get update && apt-get install -y build-essential cmake
|
||||
WORKDIR /src
|
||||
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn config set yarn-offline-mirror /cache/yarn
|
||||
RUN yarn --ignore-scripts --pure-lockfile --network-timeout 600000
|
||||
|
||||
COPY . ./
|
||||
@ -34,7 +35,8 @@ FROM node:16-slim
|
||||
WORKDIR /bin/matrix-hookshot
|
||||
|
||||
COPY --from=builder /src/yarn.lock /src/package.json ./
|
||||
|
||||
COPY --from=builder /cache/yarn /cache/yarn
|
||||
RUN yarn config set yarn-offline-mirror /cache/yarn
|
||||
|
||||
RUN yarn --network-timeout 600000 --production --pure-lockfile && yarn cache clean
|
||||
|
||||
|
1
changelog.d/615.misc
Normal file
1
changelog.d/615.misc
Normal file
@ -0,0 +1 @@
|
||||
Cache yarn dependencies during Docker build.
|
Loading…
x
Reference in New Issue
Block a user