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.

25 lines
605 B

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