1
0
mirror of https://github.com/ribbybibby/ssl_exporter.git synced 2025-07-15 23:54:18 +02:00

build with go 1.13 explicitly in the Dockerfile

This commit is contained in:
Rob Best
2019-12-08 19:59:33 +00:00
parent 0a4a4023d4
commit 008952960e

View File

@ -1,4 +1,4 @@
FROM golang:stretch AS build
FROM golang:1.13-stretch AS build
ADD . /tmp/ssl_exporter
@ -12,8 +12,8 @@ FROM scratch
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=build /tmp/ssl_exporter/group \
/tmp/ssl_exporter/passwd \
/etc/
/tmp/ssl_exporter/passwd \
/etc/
COPY --from=build /tmp/ssl_exporter/ssl_exporter /
USER ssl:ssl