mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 13:17:08 +00:00
23 lines
448 B
Docker
23 lines
448 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", "app.js", "/data/config.yaml", "/data/registration.yml"]
|