Initial commit
This is not working, but will after https://github.com/ciur/papermerge/issues/106main
commit
5635292ecf
|
@ -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
|
Loading…
Reference in New Issue