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