Update Dockerfile
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
|
@@ -1,16 +1,16 @@
|
|
| 1 |
FROM searxng/searxng:latest
|
| 2 |
|
| 3 |
-
# Switch to root to
|
| 4 |
USER root
|
| 5 |
|
| 6 |
-
# Copy
|
| 7 |
-
COPY settings.yml /etc/searxng/settings.yml
|
| 8 |
|
| 9 |
-
#
|
| 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"]
|