This commit is contained in:
parent
9871336025
commit
aee461b47c
|
@ -4,7 +4,7 @@ WORKDIR /go/src/git.sbruder.de/simon/alertmanager-gotify/
|
||||||
|
|
||||||
COPY alertmanager-gotify.go .
|
COPY alertmanager-gotify.go .
|
||||||
|
|
||||||
RUN apk add --no-cache git upx
|
RUN apk add --no-cache git upx ca-certificates
|
||||||
|
|
||||||
RUN go get -v \
|
RUN go get -v \
|
||||||
&& CGO_ENABLED=0 go build -v -ldflags="-s -w" \
|
&& CGO_ENABLED=0 go build -v -ldflags="-s -w" \
|
||||||
|
@ -12,6 +12,8 @@ RUN go get -v \
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
||||||
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
COPY --from=builder /go/src/git.sbruder.de/simon/alertmanager-gotify/alertmanager-gotify /alertmanager-gotify
|
COPY --from=builder /go/src/git.sbruder.de/simon/alertmanager-gotify/alertmanager-gotify /alertmanager-gotify
|
||||||
|
|
||||||
USER 1000
|
USER 1000
|
||||||
|
|
Reference in a new issue