mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 16:42:15 +01:00
16 lines
542 B
Docker
16 lines
542 B
Docker
# Note: ARG instructions do not create additional layers.
|
|
# Instead, next layers will concatenate them.
|
|
ARG DOCKER_REPOSITORY
|
|
ARG GOTENBERG_VERSION
|
|
|
|
FROM $DOCKER_REPOSITORY/gotenberg:$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
|