lab

s-pdf (latest)

Published 2025-12-06 03:41:37 +00:00 by myve

Installation

docker pull hub.myvelabs.com/lab/s-pdf:latest
sha256:eefc2d1fefa2899dd2eff8a0089b6c05a4455aec3416cb1ff62db15403af326d

About this package

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Image layers

ADD alpine-minirootfs-3.22.1-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
ARG VERSION_TAG=2.1.1
LABEL org.opencontainers.image.title=Stirling-PDF
LABEL org.opencontainers.image.description=Stirling-PDF with embedded frontend - Full version
LABEL org.opencontainers.image.source=https://github.com/Stirling-Tools/Stirling-PDF
LABEL org.opencontainers.image.licenses=MIT
LABEL org.opencontainers.image.vendor=Stirling-Tools
LABEL org.opencontainers.image.url=https://www.stirlingpdf.com
LABEL org.opencontainers.image.documentation=https://docs.stirlingpdf.com
LABEL maintainer=Stirling-Tools
LABEL org.opencontainers.image.authors=Stirling-Tools
LABEL org.opencontainers.image.version=2.1.1
LABEL org.opencontainers.image.keywords=PDF, manipulation, API, Spring Boot, React
COPY scripts /scripts # buildkit
COPY app/core/src/main/resources/static/fonts/*.ttf /usr/share/fonts/opentype/noto/ # buildkit
COPY /app/app/core/build/libs/*.jar /app.jar # buildkit
COPY /app/build/libs/restart-helper.jar /restart-helper.jar # buildkit
ENV VERSION_TAG=2.1.1 JAVA_BASE_OPTS=-XX:+UnlockExperimentalVMOptions -XX:MaxRAMPercentage=75 -XX:InitiatingHeapOccupancyPercent=20 -XX:+G1PeriodicGCInvokesConcurrent -XX:G1PeriodicGCInterval=10000 -XX:+UseStringDeduplication -XX:G1PeriodicGCSystemLoadThreshold=70 JAVA_CUSTOM_OPTS= HOME=/home/stirlingpdfuser PUID=1000 PGID=1000 UMASK=022 PYTHONPATH=/usr/lib/libreoffice/program:/opt/venv/lib/python3.12/site-packages UNO_PATH=/usr/lib/libreoffice/program URE_BOOTSTRAP=file:///usr/lib/libreoffice/program/fundamentalrc PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/venv/bin STIRLING_TEMPFILES_DIRECTORY=/tmp/stirling-pdf TMPDIR=/tmp/stirling-pdf TEMP=/tmp/stirling-pdf TMP=/tmp/stirling-pdf
RUN |1 VERSION_TAG=2.1.1 /bin/sh -c echo "@main https://dl-cdn.alpinelinux.org/alpine/edge/main" | tee -a /etc/apk/repositories && echo "@community https://dl-cdn.alpinelinux.org/alpine/edge/community" | tee -a /etc/apk/repositories && echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing" | tee -a /etc/apk/repositories && apk upgrade --no-cache -a && apk add --no-cache ca-certificates tzdata tini bash curl shadow su-exec openssl openssl-dev openjdk21-jre gcompat libc6-compat libreoffice ghostscript fontforge poppler-utils unpaper tesseract-ocr-data-eng tesseract-ocr-data-chi_sim tesseract-ocr-data-deu tesseract-ocr-data-fra tesseract-ocr-data-por ocrmypdf py3-opencv python3 py3-pip py3-pillow@testing py3-pdf2image@testing && python3 -m venv /opt/venv && /opt/venv/bin/pip install --upgrade pip setuptools && /opt/venv/bin/pip install --no-cache-dir --upgrade unoserver weasyprint && ln -s /usr/lib/libreoffice/program/uno.py /opt/venv/lib/python3.12/site-packages/ && ln -s /usr/lib/libreoffice/program/unohelper.py /opt/venv/lib/python3.12/site-packages/ && ln -s /usr/lib/libreoffice/program /opt/venv/lib/python3.12/site-packages/LibreOffice && mv /usr/share/tessdata /usr/share/tessdata-original && mkdir -p $HOME /configs /logs /customFiles /pipeline/watchedFolders /pipeline/finishedFolders /tmp/stirling-pdf && fc-cache -f -v && chmod +x /scripts/* && addgroup -S stirlingpdfgroup && adduser -S stirlingpdfuser -G stirlingpdfgroup && chown -R stirlingpdfuser:stirlingpdfgroup $HOME /scripts /pipeline /usr/share/fonts/opentype/noto /configs /customFiles /tmp/stirling-pdf && chown stirlingpdfuser:stirlingpdfgroup /app.jar /restart-helper.jar # buildkit
EXPOSE [8080/tcp]
ENTRYPOINT ["tini" "--" "/scripts/init.sh"]
CMD ["sh" "-c" "java -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/tmp/stirling-pdf -jar /app.jar & /opt/venv/bin/unoserver --port 2003 --interface 127.0.0.1"]

Labels

Key Value
maintainer Stirling-Tools
org.opencontainers.image.authors Stirling-Tools
org.opencontainers.image.created 2025-12-06T00:07:46.821Z
org.opencontainers.image.description #1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
org.opencontainers.image.documentation https://docs.stirlingpdf.com
org.opencontainers.image.keywords PDF, manipulation, API, Spring Boot, React
org.opencontainers.image.licenses NOASSERTION
org.opencontainers.image.revision 7faf7e50facf487e95b1ae1917b4611a3b30bfe8
org.opencontainers.image.source https://github.com/Stirling-Tools/Stirling-PDF
org.opencontainers.image.title Stirling-PDF
org.opencontainers.image.url https://github.com/Stirling-Tools/Stirling-PDF
org.opencontainers.image.vendor Stirling-Tools
org.opencontainers.image.version 2.1.1
Details
Container
2025-12-06 03:41:37 +00:00
4
OCI / Docker
linux/amd64
Stirling-Tools
NOASSERTION
1.1 GiB
Versions (1) View all
latest 2025-12-06