Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Set process as non-root with "USER" instruction.
luc59e4f29687cc
diff --git a/docker/Dockerfile b/docker/Dockerfileindex 9545e81de..bc9b4c953 100644--- a/docker/Dockerfile+++ b/docker/Dockerfile@@ -7,8 +7,7 @@ FROM java:latestRUN apt-get update && apt-get install -yq \ant \git \- curl \- sudo+ curl# trace java versionRUN java -version@@ -50,5 +49,8 @@ EXPOSE 8090# Set data volume : yacy data and configuration will persist aven after container stop or destructionVOLUME ["/opt/yacy_search_server/DATA"]-# Start yacy as non-root process in debug mode (-d) to display console logs and to wait for yacy process-CMD sudo -u yacy sh /opt/yacy_search_server/startYACY.sh -d+# Next commands run as yacy as non-root user for improved security+USER yacy++# Start yacy in debug mode (-d) to display console logs and to wait for yacy process+CMD sh /opt/yacy_search_server/startYACY.sh -d