2022-10-20 14:18:22 +02:00
|
|
|
FROM golang:alpine as build
|
|
|
|
WORKDIR /app
|
2023-07-19 16:38:40 +02:00
|
|
|
ARG VERSION=0.3.0
|
2022-10-20 14:18:22 +02:00
|
|
|
|
|
|
|
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} && \
|
2023-07-19 16:38:40 +02:00
|
|
|
go build -ldflags="-X main.version=v${VERSION}" -o /app/ntfy-alertmanager
|
2022-10-20 14:18:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
WORKDIR /
|
|
|
|
|
|
|
|
COPY --from=build /app/ntfy-alertmanager /ntfy-alertmanager
|
|
|
|
|
|
|
|
ENTRYPOINT [ "./ntfy-alertmanager" ]
|