buildx/matrix-webhook/Dockerfile

22 lines
447 B
Docker
Raw Normal View History

2021-05-19 12:38:15 +00:00
FROM node:16.1.0
COPY . /app
WORKDIR /app
ENV NODE_ENV=development
RUN npm install -g npm-check-updates
2021-05-19 12:23:48 +00:00
RUN ncu -u matrix-appservice-bridge
RUN npm install \
&& chmod +x docker-start.sh
ENV NODE_ENV=production
ENV WEBHOOKS_USER_STORE_PATH=/data/user-store.db
ENV WEBHOOKS_ROOM_STORE_PATH=/data/room-store.db
ENV WEBHOOKS_DB_CONFIG_PATH=/data/database.json
ENV WEBHOOKS_ENV=docker
CMD /app/docker-start.sh
EXPOSE 9000
2021-05-19 12:23:48 +00:00
VOLUME ["/data"]