fix some things

This commit is contained in:
Zoey 2023-12-31 17:14:55 +01:00
parent b043e666ae
commit aaaf3ffe34
3 changed files with 8 additions and 10 deletions

View File

@ -1,5 +1,5 @@
# use alpine # use alpine
FROM alpine:latest FROM alpine:3.19.0
ARG VERSION_TAG ARG VERSION_TAG
@ -28,15 +28,12 @@ RUN apk add --no-cache \
curl \ curl \
openjdk17-jre \ openjdk17-jre \
# Doc conversion # Doc conversion
libreoffice-common \ libreoffice \
libreoffice-writer \
libreoffice-calc \
libreoffice-impress \
# python and pip # python and pip
python3 && \ python3 && \
wget https://bootstrap.pypa.io/get-pip.py -qO - | python3 - --break-system-packages --no-cache-dir --upgrade && \ wget https://bootstrap.pypa.io/get-pip.py -qO - | python3 - --break-system-packages --no-cache-dir --upgrade && \
# uno unoconv and HTML # uno unoconv and HTML
pip install --break-system-packages --no-cache-dir --upgrade uno unoconv WeasyPrint && \ pip install --break-system-packages --no-cache-dir --upgrade unoconv WeasyPrint && \
# Create user and group # Create user and group
#RUN groupadd -g $PGID stirlingpdfgroup && \ #RUN groupadd -g $PGID stirlingpdfgroup && \
# useradd -u $PUID -g stirlingpdfgroup -s /bin/sh stirlingpdfuser && \ # useradd -u $PUID -g stirlingpdfgroup -s /bin/sh stirlingpdfuser && \

View File

@ -1,5 +1,5 @@
# use alpine # use alpine
FROM alpine:latest FROM alpine:3.19.0
ARG VERSION_TAG ARG VERSION_TAG
@ -34,7 +34,8 @@ RUN mkdir /configs /logs /customFiles && \
tzdata \ tzdata \
tini \ tini \
bash \ bash \
curl curl \
openjdk17-jre
# Set environment variables # Set environment variables
ENV ENDPOINTS_GROUPS_TO_REMOVE=CLI ENV ENDPOINTS_GROUPS_TO_REMOVE=CLI

View File

@ -2,8 +2,8 @@
# Copy the original tesseract-ocr files to the volume directory without overwriting existing files # Copy the original tesseract-ocr files to the volume directory without overwriting existing files
echo "Copying original files without overwriting existing files" echo "Copying original files without overwriting existing files"
mkdir -p /usr/share/tesseract-ocr mkdir -p /usr/share/tessdata
cp -rn /usr/share/tesseract-ocr-original/* /usr/share/tesseract-ocr cp -rn /usr/share/tessdata-original/* /usr/share/tessdata
if [ -d /usr/share/tesseract-ocr/4.00/tessdata ]; then if [ -d /usr/share/tesseract-ocr/4.00/tessdata ]; then
cp -r /usr/share/tesseract-ocr/4.00/tessdata/* /usr/share/tessdata || true; cp -r /usr/share/tesseract-ocr/4.00/tessdata/* /usr/share/tessdata || true;