Skip to content

Instantly share code, notes, and snippets.

@urodoz
Created April 15, 2017 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save urodoz/ec5536ddf8124ed46486fbcb61bbebf6 to your computer and use it in GitHub Desktop.
Save urodoz/ec5536ddf8124ed46486fbcb61bbebf6 to your computer and use it in GitHub Desktop.
Dockerfile with self signed SSL Certificate
FROM python:2.7.13
MAINTAINER Albert Lacarta <urodoz@gmail.com>
ADD requirements.txt /opt/requirements.txt
RUN pip install -r /opt/requirements.txt
RUN mkdir -p /opt/code
WORKDIR /opt/code
ADD supervisord.conf /etc/supervisord.conf
CMD supervisord -c /etc/supervisord.conf
RUN pip install python-memcached && \
pip install pymemcache
# HTML entities for utf8 codification
RUN pip install -U pip && \
pip install htmlentities && \
pip install redis raven[flask] unidecode Flask-Babel && \
pip install Flask-Session Flask-Script && \
pip install polib bs4 behave pyyaml
# Adding sentry certificate
ADD certs/www.acme.com.crt /usr/local/share/ca-certificates/www.acme.com.crt
RUN update-ca-certificates
RUN pip install raven[flask] --upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment