mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-20 17:39:54 +00:00
Try provide docker setup
This commit is contained in:
36
docker/joex.dockerfile
Normal file
36
docker/joex.dockerfile
Normal file
@ -0,0 +1,36 @@
|
||||
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 \
|
||||
&& curl -Ls $UNO_URL -o /usr/local/bin/unoconv \
|
||||
&& chmod +x /usr/local/bin/unoconv \
|
||||
&& ln -s /usr/bin/python3 /usr/bin/python \
|
||||
&& mkdir -p /opt \
|
||||
&& cd /opt \
|
||||
&& curl -L -o docspell.zip https://github.com/eikek/docspell/releases/download/v0.4.0/docspell-joex-0.4.0.zip \
|
||||
&& unzip docspell.zip \
|
||||
&& rm docspell.zip \
|
||||
&& apk del curl unzip
|
||||
|
||||
COPY joex/entrypoint.sh /opt/entrypoint.sh
|
||||
|
||||
EXPOSE 7878
|
||||
|
||||
ENTRYPOINT ["/opt/entrypoint.sh"]
|
Reference in New Issue
Block a user