diff --git a/CloudronManifest.json b/CloudronManifest.json index 1ec51ae..893a2d4 100644 --- a/CloudronManifest.json +++ b/CloudronManifest.json @@ -5,7 +5,7 @@ "description": "file://DESCRIPTION.md", "changelog": "file://CHANGELOG", "tagline": "Privacy-respecting metasearch engine", - "version": "0.0.2", + "version": "0.0.3", "healthCheckPath": "/", "httpPort": 8888, "addons": { diff --git a/Dockerfile b/Dockerfile index 50dac4b..6ed7213 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,10 @@ RUN curl -L https://github.com/asciimoo/searx/archive/master.tar.gz | tar -xz -- RUN mv /app/code/searx/settings.yml /app/code/searx/settings.yml.orig RUN ln -sf /app/data/settings.yml /app/code/searx/settings.yml +RUN chown -R www-data.www-data /app/code + EXPOSE 8888 -ADD start.sh /app/ +ADD start_searx.sh /app/ -CMD [ "/app/start.sh" ] +CMD [ "/app/start_searx.sh" ] diff --git a/start.sh b/start_searx.sh similarity index 71% rename from start.sh rename to start_searx.sh index 44e05ba..256fe1e 100755 --- a/start.sh +++ b/start_searx.sh @@ -8,4 +8,6 @@ if [[ -z "$(ls -A /app/data)" ]]; then sed -i "s/127.0.0.1/0.0.0.0/g" /app/data/settings.yml fi -exec python /app/code/searx/webapp.py +chown -R www-data.www-data /app/data + +exec gosu www-data python /app/code/searx/webapp.py