feat: Make Dockerfile compatible with OpenShift and non-root environments#611
Open
dotmobo wants to merge 1 commit intospeaches-ai:masterfrom
Open
feat: Make Dockerfile compatible with OpenShift and non-root environments#611dotmobo wants to merge 1 commit intospeaches-ai:masterfrom
dotmobo wants to merge 1 commit intospeaches-ai:masterfrom
Conversation
be4a3ea to
ff7cd1e
Compare
ff7cd1e to
54baa90
Compare
Author
|
It works fine on OpenShift, you just have to specify the HF cache folder with an env var in the helm chart like And mount a volume like : Tested with faster whisper small and piper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request refactors the Dockerfile to ensure compatibility with security-constrained container platforms like OpenShift, which enforce a "run as non-root" policy with an arbitrary user ID.
The previous Dockerfile was not suitable for these environments because it relied on:
This approach fails when the container is launched with an arbitrary, non-root user, as that user lacks permissions to write to the home directory or other root-owned locations.
To address this, the Dockerfile has been modified as follows:
WORKDIR: The working directory is now set to a neutral /app location.change that allows an arbitrary user (belonging to the root group, GID 0) to execute the application.
in one place.
These changes make our container more secure and portable, enabling seamless deployment on OpenShift and other locked-down environments without sacrificing functionality.