Dockerfile 966 B

123456789101112131415161718192021222324252627282930313233
  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 git
  5. RUN pip3 install cython==0.29.6 cymem
  6. RUN mkdir -p /data
  7. WORKDIR /usr/local/lsup/src
  8. COPY .git ./.git
  9. COPY ext ./ext
  10. COPY bin ./bin
  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. # Clean up build-required packages & dirs.
  17. RUN apk del build-base git
  18. RUN rm -rf .git
  19. RUN [ -f /data/ldprs_store/data.mdb ] || \
  20. echo yes | lsup-admin bootstrap
  21. VOLUME /data
  22. EXPOSE 8000
  23. ENTRYPOINT ["gunicorn", "-c", "python:lakesuperior.wsgi", \
  24. "lakesuperior.server:fcrepo"]
  25. #ENTRYPOINT ["./bin/fcrepo"]