bjtiew commited on
Commit
5ba37a4
·
verified ·
1 Parent(s): 040dd29

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -1,4 +1,7 @@
1
  FROM gotenberg/gotenberg:8
2
 
3
- # Force Gotenberg to listen on the HF port via the command line argument
4
- ENTRYPOINT ["gotenberg", "--api-listen-port=7860"]
 
 
 
 
1
  FROM gotenberg/gotenberg:8
2
 
3
+ # This matches the flag shown in your logs to pull the port from an environment variable
4
+ ENV PORT=7860
5
+
6
+ # We tell Gotenberg to look at the 'PORT' variable for its instructions
7
+ ENTRYPOINT ["gotenberg", "--api-port-from-env=PORT"]