Skip to content

Commit

Permalink
revert to using distroless image
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvatt committed Jan 8, 2025
1 parent 63bcd12 commit 355c33c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ RUN adduser -u 1001 knorten -D && \
mkdir -p /home/knorten/.config/helm/registry && \
chown -R knorten:knorten /home/knorten

FROM golang:1.23-alpine
FROM gcr.io/distroless/static-debian11

COPY --chown=knorten:knorten --from=builder /etc/passwd /etc/passwd
COPY --chown=knorten:knorten --from=builder /home/knorten /home/knorten
COPY --chown=knorten:knorten --from=builder /home/knorten/.config/helm/registry /home/knorten/.config/helm/registry
COPY --chown=knorten:knorten --from=builder /home/knorten/.config/helm /home/knorten/.config/helm
COPY --chown=knorten:knorten --from=builder /src/knorten /home/knorten/knorten
COPY --chown=knorten:knorten --from=builder /src/assets /home/knorten/assets
COPY --chown=knorten:knorten --from=builder /src/templates /home/knorten/templates
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-ci
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY /knorten /knorten
RUN chown knorten:knorten /knorten
RUN chmod +x /knorten

FROM golang:1.23-alpine
FROM gcr.io/distroless/static-debian11

COPY --chown=knorten:knorten --from=assets /etc/passwd /etc/passwd
COPY --chown=knorten:knorten --from=assets /home/knorten /home/knorten
Expand Down

0 comments on commit 355c33c

Please sign in to comment.