hookshot/Dockerfile
Travis Ralston 80d8a14b03
Fix config.yml reference in dockerfile
This is a breaking change for those who use the docker image, but oh well.
2019-08-09 22:44:27 -06:00

23 lines
475 B
Docker

# Stage 0: Build the thing
FROM node:12-alpine AS builder
COPY . /src
WORKDIR /src
RUN npm install
RUN npm run build
# Stage 1: The actual container
FROM node:12-alpine
COPY --from=builder /src/lib/ /bin/matrix-github/
COPY --from=builder /src/package*.json /bin/matrix-github/
WORKDIR /bin/matrix-github
RUN npm install --production
VOLUME /data
EXPOSE 9993
EXPOSE 7775
CMD ["node", "/bin/matrix-github/App/BridgeApp.js", "/data/config.yml", "/data/registration.yml"]