Skip to content

Commit 70a7790

Browse files
committed
Change to distroless image
1 parent 91eb31f commit 70a7790

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ ADD . /build/
44
WORKDIR /build
55
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o main .
66

7-
FROM scratch
7+
FROM gcr.io/distroless/static:nonroot
88
COPY --from=builder /build/main /app/
99
WORKDIR /app
10+
USER nonroot:nonroot
1011
ENTRYPOINT ["./main"]

charts/azdo-git-proxy/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ description: A Helm chart for azdo-git-proxy
44

55
type: application
66

7-
version: v0.1.0-rc3
7+
version: v0.1.0-rc4
88

9-
appVersion: v0.1.0-rc3
9+
appVersion: v0.1.0-rc4

0 commit comments

Comments
 (0)