An ebook/comic library service and web client
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.

25 lines
633 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 ./ ${ATHENEUM_APP_DIRECTORY}/
  13. RUN cd ${ATHENEUM_APP_DIRECTORY} \
  14. && pipenv install --system --deploy --ignore-pipfile
  15. EXPOSE 8080
  16. WORKDIR ${ATHENEUM_APP_DIRECTORY}
  17. CMD ./entrypoint.sh