-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
33 lines (25 loc) · 1.02 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This extends the heideltime container from the chronoi-project, which is
# currently (01/2020) maintained in the pilot corpus project:
# https://github.com/dainst/chronoi-pilot-corpus-processing/tree/master/heideltime
FROM dainst/chronoi-heideltime:0.1.0
RUN apt-get update && apt-get -y install \
python3-pip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV LIBRARY_PATH=/lib:/usr/lib
ENV PIPENV_VENV_IN_PROJECT=true
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
# workaround for pipenv bug: https://github.com/pypa/pipenv/issues/1328
RUN set -ex && mkdir /app
RUN pip3 install 'pipenv==2018.11.26'
COPY docker/cilantro-nlp-heideltime-worker/Pipfile.lock Pipfile.lock
COPY docker/cilantro-nlp-heideltime-worker/Pipfile Pipfile
RUN set -ex && pipenv install --deploy --system
COPY ./utils /app/utils
COPY ./workers /app/workers
COPY ./resources /app/resources
WORKDIR /app
COPY docker/cilantro-nlp-heideltime-worker/entrypoint.sh /entrypoint.sh
COPY docker/cilantro-nlp-heideltime-worker/VERSION .
ENTRYPOINT bash /entrypoint.sh