diff options
author | Wonderfall <wonderfall@riseup.net> | 2016-01-04 07:38:47 +0100 |
---|---|---|
committer | Wonderfall <wonderfall@riseup.net> | 2016-01-04 07:38:47 +0100 |
commit | 5f05a3c5857a3f8f5344db093f023e21ff18f6de (patch) | |
tree | 28f57199b92c122d5cb0c809c68c9580328b15ff /Dockerfile | |
parent | b0587a022710a0b4a090c8925ff6715f4008d2a9 (diff) | |
download | searxng-5f05a3c5857a3f8f5344db093f023e21ff18f6de.tar.gz searxng-5f05a3c5857a3f8f5344db093f023e21ff18f6de.zip |
Better Dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile index c5c56d1b3..208c4d69a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ RUN adduser -D -h /usr/local/searx -s /bin/sh searx searx \ && echo '#!/bin/sh' >> run.sh \ && echo 'sed -i "s|base_url : False|base_url : $BASE_URL|g" searx/settings.yml' >> run.sh \ && echo 'sed -i "s/image_proxy : False/image_proxy : $IMAGE_PROXY/g" searx.setting.yml' >> run.sh \ + && echo 'sed -i "s/ultrasecretkey/`openssl rand -hex 16`/g" searx/settings.yml' >> run.sh \ && echo 'python searx/webapp.py' >> run.sh \ && chmod +x run.sh @@ -49,6 +50,4 @@ RUN chown -R searx:searx /usr/local/searx USER searx -RUN cd /usr/local/searx \ - && sed -i "s/127.0.0.1/0.0.0.0/g" searx/settings.yml \ - && sed -i "s/ultrasecretkey/`openssl rand -hex 16`/g" searx/settings.yml +RUN sed -i "s/127.0.0.1/0.0.0.0/g" searx/settings.yml |