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

Use multi-stage builds in Dockerfiles #36

Open
codeofmochi opened this issue Aug 4, 2023 · 0 comments
Open

Use multi-stage builds in Dockerfiles #36

codeofmochi opened this issue Aug 4, 2023 · 0 comments
Labels
build Improves the build system (devcontainer, dependencies, ...)

Comments

@codeofmochi
Copy link
Collaborator

Should we use multi-stage builds?

This would improve the size and the security of the images, because the build tools would stay in the builder step image. Then we only transfer the required compiled assets and have a final image that is minimal and that only contains the runtime and the executed code.

See original discussion in #33 (comment)_

Other links:

@github-project-automation github-project-automation bot moved this to 📋 Backlog in CLIC website v2 Aug 4, 2023
@codeofmochi codeofmochi changed the title What do you think about using [multi-stage builds](https://docs.docker.com/build/building/multi-stage/) ? IMO this would be better, because the build tools would stay in the builder step image. Then we only transfer the required compiled assets and have a final image that is minimal and that only contains the runtime and the executed code. Use multi-stage builds in Dockerfiles Aug 4, 2023
@codeofmochi codeofmochi added the build Improves the build system (devcontainer, dependencies, ...) label Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Improves the build system (devcontainer, dependencies, ...)
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant