clicepfl / clicepfl/clicketing

Use multi-stage builds in Dockerfiles

Open
#35 0 comments 0 reactions 0 assignees Claimed by @NoeTerrier View on GitHub
Dominant language
TypeScript
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Copy from issue https://github.com/clicepfl/website/issues/36 of CLIC website:

>
> Should we use [multi-stage builds](https://docs.docker.com/build/building/multi-stage/)?
>
> 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 https://github.com/clicepfl/website/pull/33#discussion_r1281900621_
>
> Other links:
> - https://github.com/nodejs/docker-node/issues/1169
> - https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md#non-root-user

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.