Block a user
gotenberg (8)
Published 2026-09-02 20:24:18 +00:00 by ericoalmeida
Installation
docker pull gitea.externo.utic.app.br/ericoalmeida/gotenberg:8sha256:9ced40d1b764b4538d79a7597137f42f0c187499d0f283208b227d1e62c55c3f
About this package
A Docker-based API for converting documents to PDF.
Image Layers
| # debian.sh --arch 'amd64' out/ 'trixie' '@1785715200' |
| ARG TIMEZONE=UTC |
| ENV TZ=UTC |
| COPY /custom-jre /opt/java # buildkit |
| ENV PATH=/opt/java/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| ARG GOTENBERG_USER_GID=1001 |
| ARG GOTENBERG_USER_UID=1001 |
| RUN |3 TIMEZONE=UTC GOTENBERG_USER_GID=1001 GOTENBERG_USER_UID=1001 /bin/sh -c groupadd --gid "$GOTENBERG_USER_GID" gotenberg && useradd --uid "$GOTENBERG_USER_UID" --gid gotenberg --shell /bin/bash --home /home/gotenberg --no-create-home gotenberg && mkdir /home/gotenberg && chown gotenberg: /home/gotenberg # buildkit |
| RUN |3 TIMEZONE=UTC GOTENBERG_USER_GID=1001 GOTENBERG_USER_UID=1001 /bin/sh -c apt-get update -qq && apt-get upgrade -yqq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends ca-certificates tini curl fonts-crosextra-carlito fonts-crosextra-caladea fonts-liberation fonts-liberation2 fonts-dejavu fonts-noto-cjk fonts-noto-color-emoji fonts-noto-core qpdf exiftool && mkdir -p /usr/share/man/man1 && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # buildkit |
| RUN |3 TIMEZONE=UTC GOTENBERG_USER_GID=1001 GOTENBERG_USER_UID=1001 /bin/sh -c printf '#!/bin/bash\n\nexec java -jar /usr/bin/pdftk-all.jar "$@"' > /usr/bin/pdftk && chmod +x /usr/bin/pdftk # buildkit |
| RUN |3 TIMEZONE=UTC GOTENBERG_USER_GID=1001 GOTENBERG_USER_UID=1001 /bin/sh -c usermod -aG root gotenberg && chgrp -R 0 /home/gotenberg && chmod -R g=u /home/gotenberg # buildkit |
| COPY build/fonts.conf /etc/fonts/conf.d/100-gotenberg.conf # buildkit |
| COPY /downloads/pdftk-all.jar /usr/bin/pdftk-all.jar # buildkit |
| COPY /home/pdfcpu /usr/bin/ # buildkit |
| ENV LANG=C.UTF-8 |
| ENV LC_ALL=C.UTF-8 |
| ENV PDFTK_BIN_PATH=/usr/bin/pdftk |
| ENV QPDF_BIN_PATH=/usr/bin/qpdf |
| ENV EXIFTOOL_BIN_PATH=/usr/bin/exiftool |
| ENV PDFCPU_BIN_PATH=/usr/bin/pdfcpu |
| ENV GOTENBERG_VERSIONS_DIR_PATH=/opt/gotenberg/versions |
| COPY build/capture-version.sh /opt/gotenberg/capture-version.sh # buildkit |
| RUN |3 TIMEZONE=UTC GOTENBERG_USER_GID=1001 GOTENBERG_USER_UID=1001 /bin/sh -c bash /opt/gotenberg/capture-version.sh "$GOTENBERG_VERSIONS_DIR_PATH" qpdf "$QPDF_BIN_PATH" --version && bash /opt/gotenberg/capture-version.sh "$GOTENBERG_VERSIONS_DIR_PATH" exiftool "$EXIFTOOL_BIN_PATH" -ver && bash /opt/gotenberg/capture-version.sh "$GOTENBERG_VERSIONS_DIR_PATH" pdftk "$PDFTK_BIN_PATH" --version && bash /opt/gotenberg/capture-version.sh "$GOTENBERG_VERSIONS_DIR_PATH" pdfcpu "$PDFCPU_BIN_PATH" version # buildkit |
| ENV OTEL_TRACES_EXPORTER=none |
| ENV OTEL_METRICS_EXPORTER=none |
| ENV OTEL_LOGS_EXPORTER=none |
| ARG GOTENBERG_VERSION=8.36.0 |
| ARG GOTENBERG_USER_GID=1001 |
| ARG GOTENBERG_USER_UID=1001 |
| ARG TMP_CHROMIUM_VERSION_PPC64EL=146.0.7680.80-1~deb13u1 |
| LABEL org.opencontainers.image.title=Gotenberg org.opencontainers.image.description=A Docker-based API for converting documents to PDF. org.opencontainers.image.version=8.36.0 org.opencontainers.image.authors=Julien Neuhart <neuhart.julien@gmail.com> org.opencontainers.image.documentation=https://gotenberg.dev org.opencontainers.image.source=https://github.com/gotenberg/gotenberg |
| RUN |5 TIMEZONE=UTC GOTENBERG_USER_GID=1001 GOTENBERG_USER_UID=1001 GOTENBERG_VERSION=8.36.0 TMP_CHROMIUM_VERSION_PPC64EL=146.0.7680.80-1~deb13u1 /bin/sh -c /bin/bash -c 'set -e && if [[ "$(dpkg --print-architecture)" == "ppc64el" ]]; then apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends devscripts && debsnap chromium-common "$TMP_CHROMIUM_VERSION_PPC64EL" -v --force --binary --architecture ppc64el && debsnap chromium "$TMP_CHROMIUM_VERSION_PPC64EL" -v --force --binary --architecture ppc64el && DEBIAN_FRONTEND=noninteractive apt-get install --fix-broken -y -qq --no-install-recommends "./binary-chromium-common/chromium-common_${TMP_CHROMIUM_VERSION_PPC64EL}_ppc64el.deb" "./binary-chromium/chromium_${TMP_CHROMIUM_VERSION_PPC64EL}_ppc64el.deb" && DEBIAN_FRONTEND=noninteractive apt-get purge -y -qq devscripts && rm -rf ./binary-chromium-common/* ./binary-chromium/*; else apt-get update -qq && apt-get upgrade -yqq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends chromium; fi' && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # buildkit |
| RUN |5 TIMEZONE=UTC GOTENBERG_USER_GID=1001 GOTENBERG_USER_UID=1001 GOTENBERG_VERSION=8.36.0 TMP_CHROMIUM_VERSION_PPC64EL=146.0.7680.80-1~deb13u1 /bin/sh -c echo "deb http://deb.debian.org/debian trixie-backports main" >> /etc/apt/sources.list && apt-get update -qq && apt-get upgrade -yqq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends python3 python3-distutils-extra hyphen-af hyphen-as hyphen-be hyphen-bg hyphen-bn hyphen-ca hyphen-cs hyphen-da hyphen-de hyphen-el hyphen-en-gb hyphen-en-us hyphen-eo hyphen-es hyphen-fr hyphen-gl hyphen-gu hyphen-hi hyphen-hr hyphen-hu hyphen-id hyphen-is hyphen-it hyphen-kn hyphen-lt hyphen-lv hyphen-ml hyphen-mn hyphen-mr hyphen-nl hyphen-no hyphen-or hyphen-pa hyphen-pl hyphen-pt-br hyphen-pt-pt hyphen-ro hyphen-ru hyphen-sk hyphen-sl hyphen-sr hyphen-sv hyphen-ta hyphen-te hyphen-th hyphen-uk hyphen-zu && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends -t trixie-backports libreoffice-writer libreoffice-calc libreoffice-impress libreoffice-draw python3-uno && ln -s /usr/bin/python3 /usr/bin/python && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # buildkit |
| COPY /home/gotenberg /usr/bin/ # buildkit |
| COPY /downloads/unoconverter /usr/bin/unoconverter # buildkit |
| COPY --chown=1001:1001 build/chromium-hyphen-data /opt/gotenberg/chromium-hyphen-data # buildkit |
| ENV CHROMIUM_BIN_PATH=/usr/bin/chromium |
| ENV CHROMIUM_HYPHEN_DATA_DIR_PATH=/opt/gotenberg/chromium-hyphen-data |
| ENV LIBREOFFICE_BIN_PATH=/usr/lib/libreoffice/program/soffice.bin |
| ENV UNOCONVERTER_BIN_PATH=/usr/bin/unoconverter |
| RUN |5 TIMEZONE=UTC GOTENBERG_USER_GID=1001 GOTENBERG_USER_UID=1001 GOTENBERG_VERSION=8.36.0 TMP_CHROMIUM_VERSION_PPC64EL=146.0.7680.80-1~deb13u1 /bin/sh -c bash /opt/gotenberg/capture-version.sh "$GOTENBERG_VERSIONS_DIR_PATH" chromium "$CHROMIUM_BIN_PATH" --version && bash /opt/gotenberg/capture-version.sh "$GOTENBERG_VERSIONS_DIR_PATH" libreoffice-api "$LIBREOFFICE_BIN_PATH" --version # buildkit |
| USER gotenberg |
| WORKDIR /home/gotenberg |
| EXPOSE [3000/tcp] |
| ENTRYPOINT ["/usr/bin/tini" "--"] |
| CMD ["gotenberg"] |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.authors | Julien Neuhart <neuhart.julien@gmail.com> |
| org.opencontainers.image.description | A Docker-based API for converting documents to PDF. |
| org.opencontainers.image.documentation | https://gotenberg.dev |
| org.opencontainers.image.source | https://github.com/gotenberg/gotenberg |
| org.opencontainers.image.title | Gotenberg |
| org.opencontainers.image.version | 8.36.0 |