Public | Automated Build

Last pushed: a month ago
Dockerfile
FROM praekeltfoundation/supervisor:alpine # Install runtime dependencies for MC2 as well as Nginx and Redis RUN apk --no-cache add libffi libpq \ nginx redis && \ rm /etc/nginx/conf.d/default.conf # Copy in bits of MC2 source we need COPY mc2 /deploy/mc2 COPY manage.py \ requirements.txt \ requirements-dev.txt \ setup.py \ README.rst \ docker/docker-entrypoint.sh \ /deploy/ ENV PROJECT_ROOT /deploy/ WORKDIR /deploy/ # Install MC2 as well as gunicorn RUN pip install gunicorn "Django<1.9,>=1.8" \ && pip install -e . # Set some basic config ENV DJANGO_SETTINGS_MODULE mc2.settings ENV MESOS_MARATHON_HOST http://servicehost:8080 # Copy in Nginx and Supervisor config COPY docker/nginx.conf /etc/nginx/nginx.conf COPY docker/mc2.nginx.conf /etc/nginx/conf.d/ COPY docker/mc2.supervisor.conf /etc/supervisor/conf.d/ RUN django-admin.py collectstatic --noinput\ && django-admin.py compress EXPOSE 80 CMD ["/deploy/docker-entrypoint.sh"]
Source Repository