Skip to content

feat(docker): improve dockerfile build#220

Merged
afourney merged 9 commits intomicrosoft:mainfrom
syaghoubi00:fix-docker
Mar 8, 2025
Merged

feat(docker): improve dockerfile build#220
afourney merged 9 commits intomicrosoft:mainfrom
syaghoubi00:fix-docker

Conversation

@syaghoubi00
Copy link
Contributor

Build from source instead of installing package.
Don't ignore files needed for building in dockerignore.
Set apt to be non-interactive.
Use generic nobody:nogroup instead of uid:gid of 10000.
Don't install recommended packages with git.

The USER root directive isn't needed directly after FROM

Signed-off-by: Sebastian Yaghoubi <sebastianyaghoubi@gmail.com>
Signed-off-by: Sebastian Yaghoubi <sebastianyaghoubi@gmail.com>
Signed-off-by: Sebastian Yaghoubi <sebastianyaghoubi@gmail.com>
Signed-off-by: Sebastian Yaghoubi <sebastianyaghoubi@gmail.com>
Signed-off-by: Sebastian Yaghoubi <sebastianyaghoubi@gmail.com>
Signed-off-by: Sebastian Yaghoubi <sebastianyaghoubi@gmail.com>
@syaghoubi00
Copy link
Contributor Author

@microsoft-github-policy-service agree

@syaghoubi00 syaghoubi00 marked this pull request as ready for review December 26, 2024 22:28
@afourney afourney merged commit 515fa85 into microsoft:main Mar 8, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants