Skip to content

Commit e31ef71

Browse files
authored
Use static-debian10:nonroot instead of static:latest (#131)
Otherwise you will get the following error message: ``` docker pull gcr.io/distroless/static:latest latest: Pulling from distroless/static no matching manifest for linux/arm/v7 in the manifest list entries ```
1 parent 2a4758e commit e31ef71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ COPY collector ./collector
99
COPY client ./client
1010
RUN GO111MODULE=on CGO_ENABLED=0 GOOS=linux go build -mod=vendor -a -ldflags "-X main.version=${VERSION} -X main.commit=${GIT_COMMIT}" -o exporter .
1111

12-
FROM gcr.io/distroless/static:latest
12+
FROM gcr.io/distroless/static-debian10:nonroot
1313
COPY --from=builder /go/src/github.com/nginxinc/nginx-prometheus-exporter/exporter /usr/bin/
1414

1515
USER 1001:1001

0 commit comments

Comments
 (0)