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

Docker image for adelphi Python package #145

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docker/adelphi/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM python:3.10.0b1-alpine3.13

RUN pip install PyGithub==1.54.1
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For Python3.x adelphi 0.2.1 will attempt to install PyGithub 1.55 (as of this writing) which in turn will try to install pynacl, a set of Python bindings for libsodium. pynacl requires native extensions but since gcc isn't present in the alpine image this will fail. pip will then fall back on the next PyGithub release, which is 1.54.1. We save ourselves that process by pre-emptively installing the proper PyGithub release before installing adelphi.

RUN pip install adelphi==0.2.1

ENTRYPOINT ["adelphi"]