Skip to content

Commit edef102

Browse files
smorimotolukasmalkmus
authored andcommitted
Use Distroless instead of Alpine
Signed-off-by: Sora Morimoto <[email protected]>
1 parent bdbe108 commit edef102

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Dockerfile

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
# Production image based on alpine.
2-
FROM alpine
1+
# Production image based on distroless.
2+
FROM gcr.io/distroless/static-debian11:nonroot
33
LABEL maintainer="Axiom, Inc. <[email protected]>"
44

5-
# Upgrade packages and install ca-certificates.
6-
RUN apk update --no-cache && \
7-
apk upgrade --no-cache && \
8-
apk add --no-cache ca-certificates
9-
105
# Copy binary into image.
11-
COPY axiom-syslog-proxy /usr/bin/axiom-syslog-proxy
6+
COPY --chown=nonroot:nonroot axiom-syslog-proxy /usr/bin/axiom-syslog-proxy
127

138
# Use the project name as working directory.
149
WORKDIR /axiom-syslog-proxy

0 commit comments

Comments
 (0)