Initial commit

This is not working, but will after https://github.com/ciur/papermerge/issues/106
main
Georg Krause 2020-09-25 21:38:02 +02:00
commit 5635292ecf
No known key found for this signature in database
GPG Key ID: FD479B9A4D48E632
1 changed files with 39 additions and 0 deletions

39
Dockerfile Normal file
View File

@ -0,0 +1,39 @@
FROM alpine
RUN \
apk update && \
apk add \
file \
libxml2-dev \
libxslt-dev \
curl \
python3 \
py3-pip \
py3-wheel \
py3-cryptography \
py3-lxml \
py3-psycopg2 \
imagemagick \
poppler-utils \
tesseract-ocr \
tesseract-ocr-data-deu \
tesseract-ocr-data-fra \
tesseract-ocr-data-spa && \
mkdir -p /app/papermerge && \
if [ -z ${PAPERMERGE_RELEASE+x} ]; then \
PAPERMERGE_RELEASE=$(curl -sX GET "https://api.github.com/repos/ciur/papermerge/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
curl -o \
/tmp/papermerge.tar.gz -L \
"https://github.com/ciur/papermerge/archive/${PAPERMERGE_RELEASE}.tar.gz" && \
tar xf \
/tmp/papermerge.tar.gz -C \
/app/papermerge/ --strip-components=1 && \
cd /app/papermerge && \
pip3 install -r requirements/base.txt && \
rm -rf \
/root/.cache \
/tmp/*
EXPOSE 8000