change user
This commit is contained in:
parent
04498fe63d
commit
e1d382484e
3 changed files with 8 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
||||||
"description": "file://DESCRIPTION.md",
|
"description": "file://DESCRIPTION.md",
|
||||||
"changelog": "file://CHANGELOG",
|
"changelog": "file://CHANGELOG",
|
||||||
"tagline": "Privacy-respecting metasearch engine",
|
"tagline": "Privacy-respecting metasearch engine",
|
||||||
"version": "0.0.2",
|
"version": "0.0.3",
|
||||||
"healthCheckPath": "/",
|
"healthCheckPath": "/",
|
||||||
"httpPort": 8888,
|
"httpPort": 8888,
|
||||||
"addons": {
|
"addons": {
|
||||||
|
|
|
@ -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 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 ln -sf /app/data/settings.yml /app/code/searx/settings.yml
|
||||||
|
|
||||||
|
RUN chown -R www-data.www-data /app/code
|
||||||
|
|
||||||
EXPOSE 8888
|
EXPOSE 8888
|
||||||
|
|
||||||
ADD start.sh /app/
|
ADD start_searx.sh /app/
|
||||||
|
|
||||||
CMD [ "/app/start.sh" ]
|
CMD [ "/app/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
|
sed -i "s/127.0.0.1/0.0.0.0/g" /app/data/settings.yml
|
||||||
fi
|
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
|
Loading…
Reference in a new issue