mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-06 15:15:58 +00:00
Use a base image for joex containing all the tools
This commit is contained in:
parent
5809f94d6f
commit
29ddcccbba
6
docker/build-joex-base.sh
Executable file
6
docker/build-joex-base.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
docker build -t eikek0/docspell:joex-base-1 -f joex-base.dockerfile .
|
||||||
|
docker tag eikek0/docspell:joex-base-1 eikek0/docspell:joex-base-latest
|
38
docker/joex-base.dockerfile
Normal file
38
docker/joex-base.dockerfile
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
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 \
|
||||||
|
py3-pip \
|
||||||
|
python3-dev \
|
||||||
|
libffi-dev\
|
||||||
|
qpdf-dev \
|
||||||
|
openssl-dev \
|
||||||
|
ocrmypdf \
|
||||||
|
&& pip3 install --upgrade pip \
|
||||||
|
&& pip3 install ocrmypdf \
|
||||||
|
&& curl -Ls $UNO_URL -o /usr/local/bin/unoconv \
|
||||||
|
&& chmod +x /usr/local/bin/unoconv \
|
||||||
|
&& apk del curl unzip libxml2-dev libxslt-dev zlib-dev g++ python3-dev py3-pip libffi-dev qpdf-dev openssl-dev
|
@ -1,6 +1,4 @@
|
|||||||
FROM alpine:latest
|
FROM eikek0/docspell:joex-base-latest
|
||||||
|
|
||||||
ENV UNO_URL https://raw.githubusercontent.com/unoconv/unoconv/0.9.0/unoconv
|
|
||||||
|
|
||||||
LABEL maintainer="eikek0 <eike@docspell.org>"
|
LABEL maintainer="eikek0 <eike@docspell.org>"
|
||||||
|
|
||||||
@ -8,39 +6,12 @@ RUN apk add --no-cache openjdk11-jre \
|
|||||||
unzip \
|
unzip \
|
||||||
bash \
|
bash \
|
||||||
curl \
|
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 \
|
|
||||||
py3-pip \
|
|
||||||
python3-dev \
|
|
||||||
libffi-dev\
|
|
||||||
qpdf-dev \
|
|
||||||
openssl-dev \
|
|
||||||
ocrmypdf \
|
|
||||||
&& pip3 install --upgrade pip \
|
|
||||||
&& pip3 install ocrmypdf \
|
|
||||||
&& curl -Ls $UNO_URL -o /usr/local/bin/unoconv \
|
|
||||||
&& chmod +x /usr/local/bin/unoconv \
|
|
||||||
&& mkdir -p /opt \
|
&& mkdir -p /opt \
|
||||||
&& cd /opt \
|
&& cd /opt \
|
||||||
&& curl -L -o docspell.zip https://github.com/eikek/docspell/releases/download/v0.11.1/docspell-joex-0.11.1.zip \
|
&& curl -L -o docspell.zip https://github.com/eikek/docspell/releases/download/v0.11.1/docspell-joex-0.11.1.zip \
|
||||||
&& unzip docspell.zip \
|
&& unzip docspell.zip \
|
||||||
&& rm docspell.zip \
|
&& rm docspell.zip \
|
||||||
&& apk del curl unzip libxml2-dev libxslt-dev zlib-dev g++ python3-dev py3-pip libffi-dev qpdf-dev openssl-dev
|
&& apk del curl unzip
|
||||||
|
|
||||||
|
|
||||||
COPY entrypoint-joex.sh /opt/entrypoint.sh
|
COPY entrypoint-joex.sh /opt/entrypoint.sh
|
||||||
|
15
docker/push-images.sh
Executable file
15
docker/push-images.sh
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Update the versions in joex.dockerfile and restserver.dockerfile,
|
||||||
|
# docker-compose.yml and joex/entrypoint.sh; update versions here
|
||||||
|
docker push eikek0/docspell:joex-0.11.1
|
||||||
|
docker push eikek0/docspell:restserver-0.11.1
|
||||||
|
docker push eikek0/docspell:consumedir-0.11.1
|
||||||
|
|
||||||
|
docker push eikek0/docspell:restserver-latest
|
||||||
|
docker push eikek0/docspell:joex-latest
|
||||||
|
docker push eikek0/docspell:consumedir-latest
|
||||||
|
|
||||||
|
# test with docker-compose up
|
6
docker/push-joex-base.sh
Executable file
6
docker/push-joex-base.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
docker push eikek0/docspell:joex-base-1
|
||||||
|
docker push eikek0/docspell:joex-base-latest
|
Loading…
x
Reference in New Issue
Block a user