Skip to content

Commit

Permalink
scratch image does not need user declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
KacperPerschke committed Jan 21, 2024
1 parent 10e0690 commit e02ecfa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /go/bin/artifactory_export
-X github.com/prometheus/common/version.BuildDate=${BUILD_DATE} \
-X github.com/prometheus/common/version.BuildUser=${BUILD_USER}"

FROM alpine:3.19
FROM scratch
COPY --from=build /go/bin/artifactory_exporter /

USER nobody
EXPOSE 9531

ENTRYPOINT ["/artifactory_exporter"]

0 comments on commit e02ecfa

Please sign in to comment.