AnesKAM commited on
Commit
beec146
·
verified ·
1 Parent(s): 0a724ab

Create Dockerfile

Browse files
Files changed (1) hide show
  1. 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
+