1
0
mirror of https://github.com/Luzifer/promcertcheck.git synced 2024-09-16 16:08:27 +00:00

Update Dockerfile for readonly mods

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-02-19 19:12:47 +01:00
parent b06ec131b7
commit d125f05a69
Signed by: luzifer
GPG Key ID: 0066F03ED215AD7D

View File

@ -5,14 +5,17 @@ WORKDIR /go/src/github.com/Luzifer/promcertcheck
RUN set -ex \
&& apk add --update git \
&& go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)"
&& go install \
-ldflags "-X main.version=$(git describe --tags --always || echo dev)" \
-mod=readonly
FROM alpine:latest
LABEL maintainer "Knut Ahlers <knut@ahlers.me>"
RUN set -ex \
&& apk --no-cache add ca-certificates
&& apk --no-cache add \
ca-certificates
COPY --from=builder /go/bin/promcertcheck /usr/local/bin/promcertcheck