From 5635292ecff4b59bd422c5f0c4e43ab32ed9557d Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Fri, 25 Sep 2020 21:38:02 +0200 Subject: [PATCH] Initial commit This is not working, but will after https://github.com/ciur/papermerge/issues/106 --- Dockerfile | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..005e292 --- /dev/null +++ b/Dockerfile @@ -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