diff --git a/Dockerfile b/Dockerfile index 645faca..7b9506a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,11 @@ FROM python:3.8 RUN adduser --system gazette RUN apt-get update -y -RUN apt-get -y install default-jre wait-for-it +RUN apt-get -y install default-jre wait-for-it libtesseract4 tesseract-ocr-por + +# install Apache Tika +ADD http://archive.apache.org/dist/tika/tika-app-1.24.jar /tika-app.jar +RUN chmod 755 /tika-app.jar RUN mkdir /mnt/code COPY . /mnt/code @@ -12,9 +16,5 @@ ENV PYTHONPATH=/mnt/code RUN pip install --no-cache-dir -r requirements.txt -# install Apache Tika -ADD http://archive.apache.org/dist/tika/tika-app-1.24.jar /tika-app.jar -RUN chmod 755 /tika-app.jar - USER gazette