diff --git a/docker/Dockerfile b/docker/Dockerfile index 5007d70..9549dbd 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,11 +1,11 @@ FROM golang:alpine as build WORKDIR /app -ARG VERSION=0.1.0 +ARG VERSION=0.3.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 + go build -ldflags="-X main.version=v${VERSION}" -o /app/ntfy-alertmanager FROM alpine:latest