Skip to content

Commit

Permalink
Use Distroless instead of Alpine
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto authored and lukasmalkmus committed Aug 9, 2023
1 parent bdbe108 commit edef102
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
# Production image based on alpine.
FROM alpine
# Production image based on distroless.
FROM gcr.io/distroless/static-debian11:nonroot
LABEL maintainer="Axiom, Inc. <[email protected]>"

# Upgrade packages and install ca-certificates.
RUN apk update --no-cache && \
apk upgrade --no-cache && \
apk add --no-cache ca-certificates

# Copy binary into image.
COPY axiom-syslog-proxy /usr/bin/axiom-syslog-proxy
COPY --chown=nonroot:nonroot axiom-syslog-proxy /usr/bin/axiom-syslog-proxy

# Use the project name as working directory.
WORKDIR /axiom-syslog-proxy
Expand Down

0 comments on commit edef102

Please sign in to comment.