Skip to content

Instantly share code, notes, and snippets.

@bronger
Created October 15, 2015 16:19
Show Gist options
  • Save bronger/f914700b2dcd13a7b9ca to your computer and use it in GitHub Desktop.
Save bronger/f914700b2dcd13a7b9ca to your computer and use it in GitHub Desktop.
## -*- docker-image-name: "Dockerfile" -*-
FROM debian:jessie
MAINTAINER Torsten Bronger <bronger@xxx>
RUN apt-get update && apt-get install -y \
apache2-mpm-prefork \
fonts-dejavu-extra \
ghostscript \
host \
imagemagick \
libapache2-mod-wsgi-py3 \
libapache2-mod-xsendfile \
libmemcached-dev \
libz-dev \
python3-markdown \
python3-matplotlib \
python3-numpy \
python3-pip \
python3-psycopg2 \
python3-reportlab \
python3-scipy \
python3-yaml
RUN pip3 install django==1.8.4 pylibmc django-pylibmc
COPY apache_entrypoint.sh /
# The following is for easier debugging
RUN apt-get install -y nano htop less
ENV TERM xterm
ENV DJANGO_SETTINGS_MODULE=sites.container.settings
COPY apache /etc/apache2/sites-available/juliabase/
RUN rm /etc/apache2/sites-enabled/000-default.conf && \
ln -sf /etc/apache2/sites-available/juliabase/* /etc/apache2/sites-enabled/
RUN ls -l /etc/apache2/sites-enabled/
COPY www /var/www/juliabase/
EXPOSE 80
LABEL io.totor.environment="{environment}" \
io.totor.timestamp="{timestamp}"
CMD ["/apache_entrypoint.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment