Compare commits

...

3 Commits

2 changed files with 5 additions and 13 deletions

View File

@ -1,28 +1,20 @@
FROM node:16.1.0-alpine3.13 as builder FROM node:16.1.0
COPY . /app COPY . /app
WORKDIR /app WORKDIR /app
ENV NODE_ENV=development ENV NODE_ENV=development
RUN apk add --no-cache -t build-deps make gcc g++ python libc-dev wget git dos2unix \
&& apk add --no-cache ca-certificates
RUN npm install -g npm-check-updates RUN npm install -g npm-check-updates
RUN ncu -t minor -u \ RUN ncu -u matrix-appservice-bridge
&& ncu -u matrix-appservice-bridge
RUN npm install \ RUN npm install \
&& dos2unix docker-start.sh \ && chmod +x docker-start.sh
&& chmod +x docker-start.sh \
FROM node:16.1.0-alpine3.13
COPY --from=builder /app /app
ENV NODE_ENV=production ENV NODE_ENV=production
ENV WEBHOOKS_USER_STORE_PATH=/data/user-store.db ENV WEBHOOKS_USER_STORE_PATH=/data/user-store.db
ENV WEBHOOKS_ROOM_STORE_PATH=/data/room-store.db ENV WEBHOOKS_ROOM_STORE_PATH=/data/room-store.db
ENV WEBHOOKS_DB_CONFIG_PATH=/data/database.json ENV WEBHOOKS_DB_CONFIG_PATH=/data/database.json
ENV WEBHOOKS_ENV=docker ENV WEBHOOKS_ENV=docker
WORKDIR /app
CMD /app/docker-start.sh CMD /app/docker-start.sh
EXPOSE 9000 EXPOSE 9000

View File

@ -1,5 +1,5 @@
NAMESPACE=alemairebe NAMESPACE=alemairebe
VERSION=0.0.2 VERSION=0.0.3
IMAGE=matrix-webhook IMAGE=matrix-webhook