hekod19045 commited on
Commit
6f08445
·
verified ·
1 Parent(s): f51b0da

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile CHANGED
@@ -1,2 +1,23 @@
 
1
  FROM docker.io/searxng/searxng:latest
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official SearxNG image as the base
2
  FROM docker.io/searxng/searxng:latest
3
 
4
+ # Switch to root user to adjust permissions
5
+ USER root
6
+
7
+ # Copy custom SearxNG configuration files into the container
8
+ COPY ./searxng /etc/searxng
9
+
10
+ # Change ownership to root and set permissions
11
+ # Adjust these as per your security requirements
12
+ RUN chmod -R 755 /etc/searxng && \
13
+ chown -R root:root /etc/searxng
14
+
15
+ # Optionally, you can set the container to run as root
16
+ # (Not recommended for production due to security risks)
17
+ # USER root
18
+
19
+ # Expose the port that SearxNG listens on
20
+ EXPOSE 8080
21
+
22
+ # Define the default command to run SearxNG
23
+ CMD ["./run.sh"]