Claude Claude commited on
Commit ·
a1f7657
1
Parent(s): 51cec9f
Fix: Configure nginx to listen on port 7860 for Hugging Face
Browse filesBentoPDF uses nginx on port 8080 by default, but Hugging Face
expects port 7860. Use sed to override the nginx config.
Co-Authored-By: Claude <noreply@anthropic.com>
12345678# Use the custom bentoPDF image from GHCRFROM ghcr.io/alam00000/bentopdf-simple:sha-fb8c8c0# Set the port to 7860 (Hugging Face default)ENV SERVER_PORT=7860# Expose the portEXPOSE 786012345678# Use the custom bentoPDF image from GHCRFROM ghcr.io/alam00000/bentopdf-simple:sha-fb8c8c0# Override nginx to listen on port 7860 (Hugging Face default)RUN sed -i 's/listen 8080/listen 7860/g' /etc/nginx/conf.d/default.conf# Expose the portEXPOSE 7860
Dockerfile+2-2