Spaces:
Sleeping
Sleeping
hekod19045
commited on
Update Dockerfile
Browse files- Dockerfile +1 -6
Dockerfile
CHANGED
@@ -4,12 +4,9 @@ FROM docker.io/searxng/searxng:latest
|
|
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
|
13 |
chown -R root:root /etc/searxng
|
14 |
|
15 |
# Optionally, you can set the container to run as root
|
@@ -19,5 +16,3 @@ RUN chmod -R 755 /etc/searxng && \
|
|
19 |
# Expose the port that SearxNG listens on
|
20 |
EXPOSE 8080
|
21 |
|
22 |
-
# Define the default command to run SearxNG
|
23 |
-
CMD ["./run.sh"]
|
|
|
4 |
# Switch to root user to adjust permissions
|
5 |
USER root
|
6 |
|
|
|
|
|
|
|
7 |
# Change ownership to root and set permissions
|
8 |
# Adjust these as per your security requirements
|
9 |
+
RUN chmod -R 777 /etc/searxng && \
|
10 |
chown -R root:root /etc/searxng
|
11 |
|
12 |
# Optionally, you can set the container to run as root
|
|
|
16 |
# Expose the port that SearxNG listens on
|
17 |
EXPOSE 8080
|
18 |
|
|
|
|