fix Dockerfile

This commit is contained in:
Dmitry Vasiliev 2020-05-19 22:02:48 +03:00
parent db2ebfdea0
commit e79e0b13c9
No known key found for this signature in database
GPG Key ID: C9A6FF8856B941E3
1 changed files with 0 additions and 3 deletions

View File

@ -11,8 +11,6 @@ COPY . .
RUN go build --ldflags "-s -w -linkmode external -extldflags -static" --tags netcgo -o /prometheus-exporter-merger
FROM scratch
ENTRYPOINT ["/prometheus-exporter-merger"]
USER nobody
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
@ -21,4 +19,3 @@ COPY --from=builder /prometheus-exporter-merger /prometheus-exporter-merger
EXPOSE 8080
CMD ["/prometheus-exporter-merger", "--config", "/config/prometheus-exporter-merger.yaml"]