ARG DOCKER_REGISTRY ARG DOCKER_REPOSITORY ARG GOTENBERG_VERSION FROM $DOCKER_REGISTRY/$DOCKER_REPOSITORY:$GOTENBERG_VERSION USER root # For security reasons, the non-root user gotenberg does not own the Tini binary by default. # However, some providers like Cloud Run from Google Cloud cannot start a Docker container in that case. # See https://github.com/gotenberg/gotenberg/issues/90#issuecomment-543551353. RUN chown gotenberg: /usr/bin/tini # Gotenberg. ENV API_PORT_FROM_ENV=PORT ENV CHROMIUM_AUTO_START=true ENV LIBREOFFICE_AUTO_START=true ENV WEBHOOK_ENABLE_SYNC_MODE=true ENV GOTENBERG_BUILD_DEBUG_DATA=false ENV LOG_ENABLE_GCP_FIELDS=true USER gotenberg