Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
# Use the official SearXNG image
|
| 2 |
FROM searxng/searxng:latest
|
| 3 |
|
| 4 |
-
#
|
| 5 |
-
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
|
| 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"]
|