FROM gotenberg/gotenberg:8 # This matches the flag shown in your logs to pull the port from an environment variable ENV PORT=7860 # We tell Gotenberg to look at the 'PORT' variable for its instructions ENTRYPOINT ["gotenberg", "--api-port-from-env=PORT"]