Skip to content

Reduce docker container size (+ some other improvements)#5

Open
flocke wants to merge 1 commit intoTheQuantumPhysicist:masterfrom
flocke:improve-docker-container
Open

Reduce docker container size (+ some other improvements)#5
flocke wants to merge 1 commit intoTheQuantumPhysicist:masterfrom
flocke:improve-docker-container

Conversation

@flocke
Copy link

@flocke flocke commented Nov 1, 2025

This pull requests aims to reduce the size of the Docker container uploaded to the registry.

Result:

image

This is mainly achieved by using a separate build container for the Rust build and then only copying the finished binary to the final container.

In addition to the size reduction some other optimizations are added:

  • Simplify the user setup (only one command now)
  • Remove gosu (the binary is directly executed as user)
  • Remove the custom entrypoint script (apt-get update in entrypoint is bad practice, see https://stackoverflow.com/a/78804699)

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