Skip to content

Commit

Permalink
Make func-util rootfull
Browse files Browse the repository at this point in the history
Signed-off-by: Matej Vašek <matejvasek@gmail.com>
  • Loading branch information
matejvasek committed Aug 27, 2024
1 parent c55a776 commit b6f84fe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile.utils
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ RUN GOARCH=$TARGETARCH go build -o func-util -trimpath -ldflags '-w -s' ./cmd/fu

FROM --platform=$TARGETPLATFORM index.docker.io/library/alpine:latest

RUN apk add --no-cache socat tar \
&& addgroup func -g 1000 \
&& adduser func -u 1001 -D -G func
RUN apk add --no-cache socat tar

COPY --from=builder /workspace/func-util /usr/local/bin/
RUN ln -s /usr/local/bin/func-util /usr/local/bin/deploy && \
Expand All @@ -31,4 +29,4 @@ LABEL \
org.opencontainers.image.vendor="https://github.com/knative/func" \
org.opencontainers.image.url="https://github.com/knative/func/pkgs/container/func-utils"

USER func:func
USER 0:0

0 comments on commit b6f84fe

Please sign in to comment.