-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
21 lines (15 loc) · 883 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.12.6-slim
EXPOSE 5000
ENV FLASK_DEBUG=0
ENV SOLRIZER_IIIF_IDENTIFIER_PREFIX=fcrepo:
ENV SOLRIZER_INDEXERS={"__default__":["content_model","discoverability","page_sequence","iiif_links","dates","facets","extracted_text"],"Page":["content_model"]}
WORKDIR /opt/solrizer
RUN apt-get update && apt-get install -y git && apt-get clean
RUN pip install git+https://github.com/umd-lib/plastron.git@release/4.4#subdirectory=plastron-utils \
git+https://github.com/umd-lib/plastron.git@release/4.4#subdirectory=plastron-client \
git+https://github.com/umd-lib/plastron.git@release/4.4#subdirectory=plastron-rdf \
git+https://github.com/umd-lib/plastron.git@release/4.4#subdirectory=plastron-models \
git+https://github.com/umd-lib/plastron.git@release/4.4#subdirectory=plastron-repo
COPY src pyproject.toml /opt/solrizer/
RUN pip install -e .
ENTRYPOINT [ "solrizer" ]