Dockerfile 597 B

123456789101112131415
  1. FROM python:3.7
  2. MAINTAINER Michael B. Klein <michael.klein@northwestern.edu>
  3. RUN mkdir -p /usr/local /data
  4. WORKDIR /usr/local
  5. ADD . lakesuperior
  6. WORKDIR /usr/local/lakesuperior
  7. RUN git submodule update --init
  8. RUN [[ -f lakesuperior/model/base.c ]] || \
  9. pip install -r requirements_dev.txt
  10. RUN pip install -e .
  11. RUN cp ./docker/etc/* ./lakesuperior/etc.defaults/
  12. CMD ./docker/docker_entrypoint
  13. EXPOSE 8000
  14. HEALTHCHECK --interval=30s --timeout=5s \
  15. CMD curl -X OPTIONS -f http://localhost:8000/ || exit 1