MaxSainz2000 commited on
Commit
3747551
·
verified ·
1 Parent(s): 761fe61

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -1,16 +1,16 @@
1
  FROM searxng/searxng:latest
2
 
3
- # Switch to root to change permissions
4
  USER root
5
 
6
- # Copy our custom settings into the image
7
- COPY settings.yml /etc/searxng/settings.yml
8
 
9
- # Hugging Face expects apps to run on port 7860
10
- EXPOSE 7860
11
-
12
- # Switch back to the searxng user for security
13
  USER searxng
14
 
 
 
 
15
  # Start the engine
16
  CMD ["/usr/local/searxng/dockerfiles/docker-entrypoint.sh"]
 
1
  FROM searxng/searxng:latest
2
 
3
+ # Switch to root to perform setup
4
  USER root
5
 
6
+ # Copy settings AND set ownership to the 'searxng' user in one step
7
+ COPY --chown=searxng:searxng settings.yml /etc/searxng/settings.yml
8
 
9
+ # Switch back to the restricted user
 
 
 
10
  USER searxng
11
 
12
+ # Expose the default SearXNG port
13
+ EXPOSE 8080
14
+
15
  # Start the engine
16
  CMD ["/usr/local/searxng/dockerfiles/docker-entrypoint.sh"]