docspell/docker/joex.dockerfile

50 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-03-30 22:45:43 +00:00
FROM alpine:latest
ENV UNO_URL https://raw.githubusercontent.com/unoconv/unoconv/0.9.0/unoconv
LABEL maintainer="eikek0 <eike@docspell.org>"
RUN apk add --no-cache openjdk11-jre \
unzip \
bash \
curl \
ghostscript \
tesseract-ocr \
tesseract-ocr-data-deu \
unpaper \
wkhtmltopdf \
libreoffice \
ttf-droid-nonlatin \
ttf-droid \
ttf-dejavu \
ttf-freefont \
ttf-liberation \
libxml2-dev \
libxslt-dev \
pngquant \
zlib-dev \
g++ \
qpdf \
python3-dev \
libffi-dev\
qpdf-dev \
2020-08-01 15:22:13 +00:00
openssl-dev \
2020-08-14 22:34:33 +00:00
ocrmypdf \
&& ln -s /usr/bin/python3 /usr/bin/python \
&& pip3 install --upgrade pip \
2020-08-14 22:34:33 +00:00
&& pip3 install ocrmypdf \
2020-03-30 22:45:43 +00:00
&& curl -Ls $UNO_URL -o /usr/local/bin/unoconv \
&& chmod +x /usr/local/bin/unoconv \
&& mkdir -p /opt \
&& cd /opt \
2020-09-07 22:32:17 +00:00
&& curl -L -o docspell.zip https://github.com/eikek/docspell/releases/download/v0.11.0/docspell-joex-0.11.0.zip \
2020-03-30 22:45:43 +00:00
&& unzip docspell.zip \
&& rm docspell.zip \
2020-08-01 15:22:13 +00:00
&& apk del curl unzip libxml2-dev libxslt-dev zlib-dev g++ python3-dev libffi-dev qpdf-dev openssl-dev
2020-03-30 22:45:43 +00:00
COPY entrypoint-joex.sh /opt/entrypoint.sh
2020-03-30 22:45:43 +00:00
EXPOSE 7878
ENTRYPOINT ["/opt/entrypoint.sh"]