Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why use openssl in docker image? #23

Open
0xmichalis opened this issue Jun 4, 2023 · 0 comments
Open

Why use openssl in docker image? #23

0xmichalis opened this issue Jun 4, 2023 · 0 comments

Comments

@0xmichalis
Copy link
Contributor

0xmichalis commented Jun 4, 2023

Is it possible to replace the use of openssl with rustls? If so, you should be able to change the runtime image to use distroless which would reduce the image size from 137MB to 16.5MB and increase the security of the image since you cannot shell into it or make it execute anything other than app logic.

- FROM ubuntu:20.04 AS runtime
+ FROM gcr.io/distroless/static-debian11
REPOSITORY                                     TAG             IMAGE ID       CREATED          SIZE
artemis                                        distroless      f7648ddb5cfb   45 seconds ago   16.5MB
artemis                                        latest          ffa038e5053e   34 minutes ago   137MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant