-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (23 loc) · 694 Bytes
/
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
FROM ubuntu:22.04
#no-cache since the cache would make the image bigger than needed.
RUN apt-get update && apt-get install --no-install-recommends -y \
python3-setuptools \
python3 \
python3-pip \
tesseract-ocr \
tesseract-ocr-deu \
libsm6 \
libxext6 \
libglu1 \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
#create the folder app
ADD requirements.txt /tmp/
RUN pip3 install --no-cache-dir -r /tmp/requirements.txt
WORKDIR /app
ADD imagetopdfandtxt /app/imagetopdfandtxt
ADD tests /app/tests/
#Command used, despite specified command.
#ENTRYPOINT python3 run.py
#Use this as default command, if no command has been specified in docker run ...
CMD python3 -m imagetopdfandtxt.main -f convert