ntfy-alertmanager/docker/Dockerfile

16 lines
439 B
Docker

FROM golang:alpine as build
WORKDIR /app
ARG VERSION=0.1.0
RUN wget https://git.xenrox.net/~xenrox/ntfy-alertmanager/refs/download/v${VERSION}/ntfy-alertmanager-${VERSION}.tar.gz -O latest.tar.gz && \
tar -zxf latest.tar.gz
RUN cd ntfy-alertmanager-${VERSION} && \
go build -o /app/ntfy-alertmanager
FROM alpine:latest
WORKDIR /
COPY --from=build /app/ntfy-alertmanager /ntfy-alertmanager
ENTRYPOINT [ "./ntfy-alertmanager" ]