2021-05-25 07:57:53 +00:00
|
|
|
FROM node:10-alpine
|
2021-05-17 11:47:39 +00:00
|
|
|
|
2021-05-25 07:57:53 +00:00
|
|
|
COPY . /
|
|
|
|
WORKDIR /
|
2021-05-17 11:47:39 +00:00
|
|
|
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
|
2021-05-25 07:57:53 +00:00
|
|
|
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
|
|
|
|
|
2021-05-17 11:47:39 +00:00
|
|
|
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
|
|
|
|
|
2021-05-25 07:57:53 +00:00
|
|
|
CMD /docker-start.sh
|
2021-05-17 11:47:39 +00:00
|
|
|
|
|
|
|
EXPOSE 9000
|
2021-05-19 12:23:48 +00:00
|
|
|
VOLUME ["/data"]
|