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 #19

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

Conversation

AlexGustafsson
Copy link

Solves #18.

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. Unfortunately the naming convention of the piper builds are not adhering to the common naming conventions.

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.

@AlexGustafsson
Copy link
Author

If desired, I can add a CI/CD pipeline for building and publishing the Dockerfile to GHCR and/or Docker Hub whenever a tag is pushed.

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