2 MAINTAINER Stefan Kögl <stefan@skoegl.net>
4 # use bash instead of built-in sh, because it does not support "source" during build
5 RUN rm /bin/sh && ln -s /bin/bash /bin/sh
7 # install all packaged dependencies
8 RUN apt-get update && apt-get install -y \
18 # create log directories
19 RUN mkdir -p /var/log/gunicorn
25 # run everything in a virtualenv
27 RUN source venv/bin/activate
29 # install all runtime dependencies
31 -r /srv/mygpo/requirements.txt \
32 -r /srv/mygpo/requirements-setup.txt
34 # set up missing environment variables
35 ENTRYPOINT ["/srv/mygpo/bin/docker-env.sh"]
37 # default launch command
38 CMD ["gunicorn", "mygpo.wsgi:application", "--access-logfile", "-"]