matrix-alertmanager-receiver/Dockerfile
2021-11-16 23:49:28 +01:00

11 lines
337 B
Docker

FROM golang:alpine AS build
COPY . /app
WORKDIR /app
RUN GOOS=linux go build -o matrix-alertmanager-receiver
FROM alpine
WORKDIR /app
COPY ./config.toml.sample /etc/matrix-alertmanager-receiver.toml
COPY --from=build /app/matrix-alertmanager-receiver /app/matrix-alertmanager-receiver
EXPOSE 9088
CMD ["./matrix-alertmanager-receiver"]