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 in a Dockerfile #2

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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 15 additions & 0 deletions Dockerfile
@@ -0,0 +1,15 @@
FROM debian:stretch
Copy link
Owner

Choose a reason for hiding this comment

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

Is there a reason to prefer this over a python specific base image?

Copy link
Author

Choose a reason for hiding this comment

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

Not really, just picked it because that's mostly what we settled on for most of the docker library images

Copy link
Owner

Choose a reason for hiding this comment

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

Who is we in this sentence?

Copy link
Author

Choose a reason for hiding this comment

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

the docker library maintainers :)


RUN apt-get update && apt-get install -y python2.7 python-virtualenv
RUN echo "deb-src http://ftp.us.debian.org/debian/ stretch main" >> /etc/apt/sources.list
RUN apt-get update && apt-get build-dep -y python-cryptography python-cffi python-werkzeug

ADD . /opt/alexgaynor.net/tls-cal/
WORKDIR /opt/alexgaynor.net/tls-cal/

RUN virtualenv virt
RUN virt/bin/pip install -r requirements.txt

ONBUILD ADD config.yml /opt/alexgaynor.net/tls-cal/config.yml

ENTRYPOINT ["virt/bin/python", "tlscal.py", "/opt/alexgaynor.net/tls-cal/config.yml"]