Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Initialize admin password from default or env
luccioman05565014daa6
diff --git a/docker/Dockerfile b/docker/Dockerfileindex 314289339..be0b9c474 100644--- a/docker/Dockerfile+++ b/docker/Dockerfile@@ -12,6 +12,9 @@ RUN apt-get update && apt-get install -yq \# set current working dirWORKDIR /opt+# initial admin password can be set through environment variable+ENV YACY_ADMIN_PASS docker+# clone main YaCy git repository (we need to clone git repository to generate correct version when building from source)RUN git clone https://github.com/yacy/yacy_search_server.git@@ -24,6 +27,9 @@ WORKDIR /opt/yacy_search_server# Compile with antRUN ant compile+# Set admin password from env variable in yacy.init file+RUN sed -i "/adminAccount=/c\adminAccount=admin:$YACY_ADMIN_PASS" /opt/yacy_search_server/defaults/yacy.init+# make some cleaning to reduce image sizeRUN rm -rf .git && apt-get clean