mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 13:17:08 +00:00
Clean cache, and don't generate a lockfile (#319)
* Clean cache, and don't generate a lockfile * changelog
This commit is contained in:
parent
c02951552d
commit
4463e1c112
@ -13,7 +13,7 @@ ENV PATH="/root/.cargo/bin:${PATH}"
|
||||
# Workaround: Need to install esbuild manually https://github.com/evanw/esbuild/issues/462#issuecomment-771328459
|
||||
RUN yarn --ignore-scripts
|
||||
RUN node node_modules/esbuild/install.js
|
||||
RUN yarn build
|
||||
RUN yarn build --pure-lockfile
|
||||
|
||||
# Stage 1: The actual container
|
||||
FROM node:16
|
||||
@ -23,7 +23,7 @@ COPY --from=builder /src/public/ /bin/matrix-hookshot/public/
|
||||
COPY --from=builder /src/package.json /bin/matrix-hookshot/
|
||||
COPY --from=builder /src/yarn.lock /bin/matrix-hookshot/
|
||||
WORKDIR /bin/matrix-hookshot
|
||||
RUN yarn --production
|
||||
RUN yarn --production --pure-lockfile && yarn cache clean
|
||||
|
||||
VOLUME /data
|
||||
EXPOSE 9993
|
||||
|
1
changelog.d/319.misc
Normal file
1
changelog.d/319.misc
Normal file
@ -0,0 +1 @@
|
||||
Reduce Docker image size.
|
Loading…
x
Reference in New Issue
Block a user