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

FEAT: Slimmer Docker image #174

Merged
merged 1 commit into from
Sep 5, 2024
Merged

Conversation

carlwilson
Copy link
Collaborator

  • using alpine:3 for final image for smaller image size;
  • REMOVED JAVA_OPTS argument as args don't play nicely with CMD in Dockerfile;
  • using Alpine Linux explicity for app-builder stage;
  • using preferred ENTRYPOINT and CMD form for dumb-init;
  • removed version from execution and use a vanilla name in copy instead; and
  • use ADD to directly install dumb-init in the final image.

For reference, these changes substantially slim down the docker image again. See the difference between the alpine tag and latest below.

REPOSITORY                      TAG            IMAGE ID       CREATED         SIZE
verapdf/rest                    alpine         28609b40e825   2 minutes ago   95.9MB
verapdf/rest                    latest         8457b9b76994   3 months ago    171MB
ghcr.io/mealie-recipes/mealie   v1.0.0-RC1.1   5d9b72b27fad   11 months ago   1.19GB

- using `alpine:3` for final image for smaller image size;
- REMOVED `JAVA_OPTS` argument as args don't play nicely with `CMD` in Dockerfile;
- using Alpine Linux explicity for `app-builder` stage;
- using preferred `ENTRYPOINT` and `CMD` form for `dumb-init`;
- removed version from execution and use a vanilla name in copy instead; and
- use ADD to directly install `dumb-init` in the final image.
@carlwilson carlwilson self-assigned this Sep 5, 2024
@carlwilson carlwilson merged commit 351251a into integration Sep 5, 2024
7 checks passed
@carlwilson carlwilson deleted the feat/docker-improvements branch September 5, 2024 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants