buildx/matrix-webhook/Dockerfile

26 lines
631 B
Docker

FROM node:10-alpine
COPY . /
WORKDIR /
ENV NODE_ENV=development
RUN npm install -g npm-check-updates
RUN ncu -u matrix-appservice-bridge
RUN apk add --no-cache -t build-deps make gcc g++ python libc-dev wget git dos2unix \
&& apk add --no-cache ca-certificates \
&& dos2unix docker-start.sh \
&& chmod +x docker-start.sh \
&& npm install \
&& apk del build-deps
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 /docker-start.sh
EXPOSE 9000
VOLUME ["/data"]