Skip to content

Commit

Permalink
[Docker image] Change base image tag to nonroot
Browse files Browse the repository at this point in the history
  • Loading branch information
Icikowski committed Nov 16, 2021
1 parent 945a381 commit 437123c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN go mod download -x
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o gpts -ldflags "-X 'main.version=${BUILD_VERSION}' -X 'main.gitCommit=${BUILD_GIT_COMMIT}' -X 'main.binaryType=static' -w -extldflags '-static'" .

FROM gcr.io/distroless/static:latest
FROM gcr.io/distroless/static:nonroot
LABEL maintainer "Piotr Icikowski <[email protected]>"
LABEL org.opencontainers.image.title "GPTS - General Purpose Test Service"
LABEL org.opencontainers.image.description "Simple & easy to configure test service for serving content through HTTP"
Expand Down

0 comments on commit 437123c

Please sign in to comment.