A multipurpose python flask API server and administration SPA
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
627 B

  1. FROM python:3.6-slim-stretch
  2. MAINTAINER Drew Short <warrick@sothr.com>
  3. ENV ATHENEUM_APP_DIRECTORY /opt/atheneum
  4. ENV ATHENEUM_CONFIG_DIRECTORY /srv/atheneum/config
  5. ENV ATHENEUM_DATA_DIRECTORY /srv/atheneum/data
  6. RUN mkdir -p ${ATHENEUM_APP_DIRECTORY} \
  7. && mkdir -p ${ATHENEUM_CONFIG_DIRECTORY} \
  8. && mkdir -p ${ATHENEUM_DATA_DIRECTORY} \
  9. && pip install pipenv gunicorn
  10. VOLUME ${ATHENEUM_CONFIG_DIRECTORY}
  11. VOLUME ${ATHENEUM_DATA_DIRECTORY}
  12. COPY ./server/ ${ATHENEUM_APP_DIRECTORY}/
  13. RUN cd ${ATHENEUM_APP_DIRECTORY} \
  14. && pipenv install --system --deploy --ignore-pipfile
  15. WORKDIR ${ATHENEUM_APP_DIRECTORY}
  16. CMD ./entrypoint.sh