Update base image to distroless/base-debian12
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ COPY go.* $GOPATH/src/mypackage/myapp/
|
|||||||
WORKDIR $GOPATH/src/mypackage/myapp/
|
WORKDIR $GOPATH/src/mypackage/myapp/
|
||||||
RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/docker_state_exporter
|
RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/docker_state_exporter
|
||||||
|
|
||||||
FROM gcr.io/distroless/base-debian11
|
FROM gcr.io/distroless/base-debian12
|
||||||
COPY --from=builder /go/bin/docker_state_exporter /go/bin/docker_state_exporter
|
COPY --from=builder /go/bin/docker_state_exporter /go/bin/docker_state_exporter
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
ENTRYPOINT ["/go/bin/docker_state_exporter"]
|
ENTRYPOINT ["/go/bin/docker_state_exporter"]
|
||||||
|
|||||||
Reference in New Issue
Block a user