-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat(rootfs): Introduce custom Python build #1
base: main
Are you sure you want to change the base?
Conversation
rootfs/python-build/Dockerfile
Outdated
RUN find /usr/local -type f -name "*.so" -exec strip --strip-unneeded {} + && \ | ||
find /usr/local -type f -name "*.so" | ldconfig && \ | ||
find /usr/local -depth \ | ||
\( \ | ||
\( -type d -a \( -name test -o -name tests -o -name __pycache__ \) \) \ | ||
-o \ | ||
\( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name '*.exe' \) \) \ | ||
\) -exec rm -rf '{}' +; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not necessary since we end up with a scratch
container.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently we're copying the entire /usr/local/bin/
and /usr/local/lib/
directories to scratch
. So we still need to clean them before the copying.
rootfs
: Introduce custom Python buildbe77755
to
045f8c6
Compare
Introduce Dockerfile-based setup for custom (i.e. from source) Python build. It ends up creating a minimal Python Docker image. Signed-off-by: Razvan Deaconescu <[email protected]>
045f8c6
to
4eb059b
Compare
Introduce
Dockerfile
-based setup for custom (i.e. from source) Python build. It ends up creating a minimal Python Docker image.