add label to connect repository with GHCR image

This commit is contained in:
Ruins
2023-07-05 02:35:31 +09:00
committed by GitHub
parent 4edae4614b
commit dadd7b7aaa
+2 -1
View File
@@ -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"]