mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
Use node:16-slim for final image build (#336)
* Use node:16-slim for final image build * changelog * Add ignore scripts to final install step
This commit is contained in:
parent
b23e516aa5
commit
eea075e7ab
@ -16,14 +16,15 @@ RUN node node_modules/esbuild/install.js
|
||||
RUN yarn build --pure-lockfile
|
||||
|
||||
# Stage 1: The actual container
|
||||
FROM node:16
|
||||
FROM node:16-slim
|
||||
|
||||
COPY --from=builder /src/lib/ /bin/matrix-hookshot/
|
||||
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 --pure-lockfile && yarn cache clean
|
||||
# --ignore-scripts so we don't try to build
|
||||
RUN yarn --ignore-scripts --production --pure-lockfile && yarn cache clean
|
||||
|
||||
VOLUME /data
|
||||
EXPOSE 9993
|
||||
|
1
changelog.d/336.misc
Normal file
1
changelog.d/336.misc
Normal file
@ -0,0 +1 @@
|
||||
The docker image has been shrunk by 78%, and now takes up 300MB.
|
Loading…
x
Reference in New Issue
Block a user