Dockerfile 856 B

1234567891011121314151617181920212223242526272829
  1. FROM python:3.7-alpine
  2. LABEL "maintainer"="Michael B. Klein <michael.klein@northwestern.edu>" \
  3. "maintainer"="Stefano Cossu <scossu@getty.edu>"
  4. RUN apk add --no-cache build-base
  5. RUN apk add git
  6. RUN pip3 install cython==0.29.6 cymem
  7. RUN mkdir -p /data
  8. WORKDIR /usr/local/lsup/src
  9. COPY .git ./.git
  10. COPY ext ./ext
  11. COPY lakesuperior ./lakesuperior
  12. COPY setup.py README.rst ./
  13. RUN git submodule update --init ext
  14. RUN pip install -e .
  15. COPY ./docker/etc ./lakesuperior/etc.defaults
  16. RUN [ -f /data/ldprs_store/data.mdb ] || \
  17. echo yes | lsup-admin bootstrap
  18. VOLUME /data
  19. EXPOSE 8000
  20. ENTRYPOINT ["gunicorn", "-c", "python:lakesuperior.wsgi", \
  21. "lakesuperior.server:fcrepo"]
  22. #ENTRYPOINT ["/bin/sh"]