Skip to content

Make Docker image much much smaller#10

Open
bodiroga wants to merge 1 commit intomasterfrom
tiny-docker-image
Open

Make Docker image much much smaller#10
bodiroga wants to merge 1 commit intomasterfrom
tiny-docker-image

Conversation

@bodiroga
Copy link
Collaborator

@bodiroga bodiroga commented Aug 19, 2024

The image is build in three steps:

  • Official alpine base image in which python is installed
  • Official python:alpine image used to install (and compile) the dependencies of the service
  • Official scratch image where the first step python installation, the second step libraries and, finally, the service files are copied

The final image size is 35MB!

Signed-off-by: Aitor Iturrioz aiturrioz@tknika.eus

The image is build in three steps:
- Official alpine base image in which python is installed
- Official python:alpine image used to install (and compile) the dependencies of the service
- Official scratch image where the the first step python installation, the second step libraries and, finally, the service files are copied

The final image size is 35MB!

Signed-off-by: Aitor Iturrioz <aiturrioz@tknika.eus>
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

Successfully merging this pull request may close these issues.

1 participant