add label to connect repository with GHCR image
This commit is contained in:
+2
-1
@@ -1,4 +1,5 @@
|
||||
FROM golang:alpine as builder
|
||||
LABEL org.opencontainers.image.source="https://github.com/xruins/docker_state_exporter"
|
||||
RUN apk update && apk add git && apk add ca-certificates
|
||||
COPY *.go $GOPATH/src/mypackage/myapp/
|
||||
WORKDIR $GOPATH/src/mypackage/myapp/
|
||||
@@ -9,4 +10,4 @@ FROM alpine:3
|
||||
COPY --from=builder /go/bin/docker_state_exporter /go/bin/docker_state_exporter
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/go/bin/docker_state_exporter"]
|
||||
CMD ["-listen-address=:8080"]
|
||||
CMD ["-listen-address=:8080"]
|
||||
|
||||
Reference in New Issue
Block a user