mirror of
https://github.com/Luzifer/promcertcheck.git
synced 2024-11-08 07:50:05 +00:00
Update Dockerfile for readonly mods
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
b06ec131b7
commit
d125f05a69
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue