FROM python:3.6-slim-stretch MAINTAINER Drew Short ENV CORVUS_APP_DIRECTORY /opt/corvus ENV CORVUS_CONFIG_DIRECTORY /srv/corvus/config ENV CORVUS_DATA_DIRECTORY /srv/corvus/data RUN mkdir -p ${CORVUS_APP_DIRECTORY} \ && mkdir -p ${CORVUS_CONFIG_DIRECTORY} \ && mkdir -p ${CORVUS_DATA_DIRECTORY} \ && pip install pipenv gunicorn VOLUME ${CORVUS_CONFIG_DIRECTORY} VOLUME ${CORVUS_DATA_DIRECTORY} COPY ./server/ ${CORVUS_APP_DIRECTORY}/ RUN cd ${CORVUS_APP_DIRECTORY} \ && pipenv install --system --deploy --ignore-pipfile WORKDIR ${CORVUS_APP_DIRECTORY} CMD ./entrypoint.sh