Adopt docker setup for addons (opt-in)

This commit is contained in:
eikek
2022-05-21 00:44:17 +02:00
parent 47bd6cd0ba
commit d6a2ca48ca
3 changed files with 11 additions and 2 deletions

View File

@ -16,6 +16,8 @@ if [ -z "$2" ] || [ "$2" == "--push" ]; then
if [ ! -z "$push" ]; then
echo "Running with $push !"
fi
elif [ "$2" == "--load" ]; then
push="$2"
else
echo "Don't understand second argument: $2"
exit 1
@ -32,7 +34,7 @@ cd "$(dirname "$0")"
trap "{ docker buildx rm docspell-builder; }" EXIT
platforms="linux/amd64,linux/arm64,linux/arm/v7"
platforms=${PLATFORMS:-"linux/amd64,linux/arm64,linux/arm/v7"}
docker buildx create --name docspell-builder --use
case $version in

View File

@ -12,6 +12,7 @@ RUN JDKPKG="openjdk11-jre"; \
tzdata \
bash \
curl \
docker \
ghostscript \
tesseract-ocr \
tesseract-ocr-data-deu \
@ -54,7 +55,7 @@ RUN JDKPKG="openjdk11-jre"; \
&& pip3 install ocrmypdf \
&& curl -Ls $UNO_URL -o /usr/local/bin/unoconv \
&& chmod +x /usr/local/bin/unoconv \
&& apk del curl libxml2-dev libxslt-dev zlib-dev g++ python3-dev py3-pip libffi-dev qpdf-dev openssl-dev \
&& apk del libxml2-dev libxslt-dev zlib-dev g++ python3-dev py3-pip libffi-dev qpdf-dev openssl-dev \
&& ln -s /usr/bin/python3 /usr/bin/python
WORKDIR /opt