chore: switch base image from distroless to alpine (#67)

## This PR

- switch base image from distroless to alpine

### Notes

The Alpine image makes it much easier to mount local volumes. It's also
used in many other popular CLI as a base image.

### How to test

Build locally and run the container.

Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
This commit is contained in:
Michael Beemer 2025-01-02 14:44:23 -05:00 committed by GitHub
parent 1530d38dd3
commit 60955af1a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static:nonroot
COPY ./openfeature-cli /openfeature-cli
USER 65532:65532
FROM alpine:3.21
ENTRYPOINT ["/openfeature-cli"]
COPY ./openfeature-cli usr/local/bin/openfeature-cli
RUN chmod +x /usr/local/bin/openfeature-cli
ENTRYPOINT ["/usr/local/bin/openfeature-cli"]