Sélectionner une révision Git
-
Andrew Ferrazzutti a rédigé
* Update matrix-appservice-bridge Fixes #896 * Drop support for Node 16, default to Node 18 Required for updating to the latest matrix-appservice-bridge * Update better-sqlite3 Required for Node 20 support * Update changelog.d/897.removal Co-authored-by:
Will Hunt <will@half-shot.uk> Signed-off-by:
Andrew Ferrazzutti <andrewf@element.io> --------- Signed-off-by:
Andrew Ferrazzutti <andrewf@element.io> Co-authored-by:
Will Hunt <will@half-shot.uk>
Andrew Ferrazzutti a rédigé* Update matrix-appservice-bridge Fixes #896 * Drop support for Node 16, default to Node 18 Required for updating to the latest matrix-appservice-bridge * Update better-sqlite3 Required for Node 20 support * Update changelog.d/897.removal Co-authored-by:
Will Hunt <will@half-shot.uk> Signed-off-by:
Andrew Ferrazzutti <andrewf@element.io> --------- Signed-off-by:
Andrew Ferrazzutti <andrewf@element.io> Co-authored-by:
Will Hunt <will@half-shot.uk>
Dockerfile 719 o
FROM node:18-slim AS BUILD
COPY . /tmp/src
# install some dependencies needed for the build process
RUN apt update && apt install -y build-essential make gcc g++ python3 ca-certificates libc-dev wget git
RUN cd /tmp/src \
&& yarn
FROM node:18-slim
ENV NODE_ENV=production
COPY --from=BUILD /tmp/src/build /build
COPY --from=BUILD /tmp/src/config /config
COPY --from=BUILD /tmp/src/node_modules /node_modules
RUN sh -c 'cd /build/tools; for TOOL in *.js; do LINK="/usr/bin/$(basename $TOOL .js)"; echo -e "#!/bin/sh\ncd /data;\nnode /build/tools/$TOOL \$@" > $LINK; chmod +x $LINK; done'
CMD node /build/src/discordas.js -p 9005 -c /data/config.yaml -f /data/discord-registration.yaml
EXPOSE 9005
VOLUME ["/data"]