hookshot/Dockerfile

24 lines
515 B
Docker
Raw Normal View History

2019-08-03 18:45:06 -06:00
# Stage 0: Build the thing
FROM node:14-alpine AS builder
2019-08-03 18:45:06 -06:00
COPY . /src
WORKDIR /src
# will also build
RUN yarn
2019-08-03 18:45:06 -06:00
# Stage 1: The actual container
FROM node:12-alpine
2019-08-07 21:29:04 +01:00
COPY --from=builder /src/lib/ /bin/matrix-github/
COPY --from=builder /src/public/ /bin/matrix-github/
2019-08-03 18:45:06 -06:00
COPY --from=builder /src/package*.json /bin/matrix-github/
WORKDIR /bin/matrix-github
RUN yarn --production
2019-08-03 18:45:06 -06:00
VOLUME /data
EXPOSE 9993
EXPOSE 7775
CMD ["node", "/bin/matrix-github/App/BridgeApp.js", "/data/config.yml", "/data/registration.yml"]