zyxciss commited on
Commit
0f5f2cd
·
verified ·
1 Parent(s): 347022f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -1,11 +1,11 @@
1
  # Use the official SearXNG image
2
  FROM searxng/searxng:latest
3
 
4
- # Expose the required port
5
- EXPOSE 7860
6
 
7
- # Set environment variables for configuration (optional)
8
- ENV BASE_URL="http://0.0.0.0:7860"
9
 
10
- # Run SearXNG
11
  CMD ["gunicorn", "-b", "0.0.0.0:7860", "searx.webapp:app"]
 
1
  # Use the official SearXNG image
2
  FROM searxng/searxng:latest
3
 
4
+ # Set a writable directory (Hugging Face Spaces may not allow /etc/searxng/)
5
+ ENV SEARXNG_SETTINGS_PATH=/workspace/settings.yml
6
 
7
+ # Expose port 7860 (Hugging Face uses this for web services)
8
+ EXPOSE 7860
9
 
10
+ # Run SearXNG with correct permissions
11
  CMD ["gunicorn", "-b", "0.0.0.0:7860", "searx.webapp:app"]