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

Add Dockerfile #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

AlexGustafsson
Copy link

Solves #46.

The image is made to be similar to the one that's published on Docker Hub, but use best practices like a multi-stage build process to make sure the build process is containerized as well.

The Dockerfile would effortlessly support cross-platform builds if the buildx TARGET_ARCH and TARGET_OS could be used. I think that ctranslate2 is the "bottleneck", but it supports the most common archs.

Additionally, it would be nice to include a USER clause to make the container work well in a rootless scenario. But I'm not a native to Python and installing the wheel as non-root caused issues.

Lastly, ctranslate2 failed to install on newer python versions, hence, we're locked to python 3.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant