Public | Automated Build

Last pushed: 14 days ago
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 \ requirements.txt \ requirements-dev.txt \ \ README.rst \ docker/ \ /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 collectstatic --noinput\ && compress EXPOSE 80 CMD ["/deploy/"]
Source Repository