Clean cache, and don't generate a lockfile (#319)

* Clean cache, and don't generate a lockfile

* changelog
This commit is contained in:
Will Hunt 2022-04-25 16:11:25 +01:00 committed by GitHub
parent c02951552d
commit 4463e1c112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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
View File

@ -0,0 +1 @@
Reduce Docker image size.