change user

This commit is contained in:
Joey 2017-03-11 03:32:08 +00:00
parent 04498fe63d
commit e1d382484e
3 changed files with 8 additions and 4 deletions

View file

@ -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": {

View file

@ -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" ]

View file

@ -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