mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 00:22:14 +01:00
15 lines
465 B
Docker
15 lines
465 B
Docker
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
|
|
|
|
USER gotenberg
|