-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
27 lines (22 loc) · 876 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:cosmic
RUN \
. /etc/os-release && \
apt-get update && \
apt-get install --assume-yes --no-install-recommends python3-pip python3-setuptools graphicsmagick pdftk-java \
tesseract-ocr tesseract-ocr-fra libimage-exiftool-perl unpaper unzip curl \
software-properties-common && \
add-apt-repository ppa:stephane-brunner/cosmic && \
apt-get update && \
apt-get install --assume-yes --no-install-recommends scantailor scantailor-advanced && \
apt-get clean && \
pip3 install pyyaml numpy scipy opencv-python && \
rm --recursive --force /var/lib/apt/lists/* && \
curl http://galfar.vevb.net/store/deskew-125.zip > /tmp/deskew-125.zip && \
unzip /tmp/deskew-125.zip -d /opt && \
chmod +x /opt/Deskew/Bin/deskew &&\
rm /tmp/deskew-125.zip
CMD ["/opt/process"]
VOLUME /source \
/destination
ENV LANG=C.UTF-8
COPY process /opt/