Create Dockerfile
Browse files- Dockerfile +16 -0
Dockerfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM searxng/searxng:latest
|
| 2 |
+
|
| 3 |
+
# Copy custom settings
|
| 4 |
+
COPY settings.yml /etc/searxng/settings.yml
|
| 5 |
+
|
| 6 |
+
# Hugging Face runs as non-root user, fix permissions
|
| 7 |
+
RUN chmod 777 /etc/searxng/settings.yml
|
| 8 |
+
|
| 9 |
+
# HF requires port 7860 by default OR we set app_port in README
|
| 10 |
+
EXPOSE 8080
|
| 11 |
+
|
| 12 |
+
ENV SEARXNG_SETTINGS_PATH=/etc/searxng/settings.yml
|
| 13 |
+
ENV UWSGI_WORKERS=1
|
| 14 |
+
|
| 15 |
+
CMD ["/usr/local/searxng/manage", "uwsgi-start"]
|
| 16 |
+
|