fix(Dockerfile): use uid/gid instead of gotenberg in chown

This commit is contained in:
Julien Neuhart
2026-03-11 18:45:50 +01:00
parent fe72902cdb
commit 81d43cfbad

View File

@@ -203,7 +203,7 @@ COPY --link build/fonts.conf /etc/fonts/conf.d/100-gotenberg.conf
# Copy dictionnaries so that hypens work on Chromium. # Copy dictionnaries so that hypens work on Chromium.
# See https://github.com/gotenberg/gotenberg/issues/1293. # See https://github.com/gotenberg/gotenberg/issues/1293.
COPY --link --chown=gotenberg:gotenberg build/chromium-hyphen-data /opt/gotenberg/chromium-hyphen-data COPY --link --chown="$GOTENBERG_USER_UID:$GOTENBERG_USER_GID" build/chromium-hyphen-data /opt/gotenberg/chromium-hyphen-data
# Copy the Golang binaries. # Copy the Golang binaries.
COPY --link --from=pdfcpu-binary-stage /home/pdfcpu /usr/bin/ COPY --link --from=pdfcpu-binary-stage /home/pdfcpu /usr/bin/