Initial version
This commit is contained in:
commit
04498fe63d
7 changed files with 58 additions and 0 deletions
5
.dockerignore
Normal file
5
.dockerignore
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
.dockerignore
|
||||||
|
node_modules
|
||||||
|
|
2
CHANGELOG
Normal file
2
CHANGELOG
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[0.1.0]
|
||||||
|
* Initial version
|
22
CloudronManifest.json
Normal file
22
CloudronManifest.json
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
"id": "org.cirnoq.searx",
|
||||||
|
"title": "Searx",
|
||||||
|
"author": "Searx developers",
|
||||||
|
"description": "file://DESCRIPTION.md",
|
||||||
|
"changelog": "file://CHANGELOG",
|
||||||
|
"tagline": "Privacy-respecting metasearch engine",
|
||||||
|
"version": "0.0.2",
|
||||||
|
"healthCheckPath": "/",
|
||||||
|
"httpPort": 8888,
|
||||||
|
"addons": {
|
||||||
|
"localstorage": {}
|
||||||
|
},
|
||||||
|
"manifestVersion": 1,
|
||||||
|
"website": "https://asciimoo.github.io/searx/",
|
||||||
|
"contactEmail": "support@cloudron.io",
|
||||||
|
"icon": "file://logo.png",
|
||||||
|
"tags": [
|
||||||
|
"search", "metasearch"
|
||||||
|
],
|
||||||
|
"mediaLinks": [ ]
|
||||||
|
}
|
1
DESCRIPTION.md
Normal file
1
DESCRIPTION.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Please add the appstore description in markdown format here.
|
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
FROM cloudron/base:0.10.0
|
||||||
|
MAINTAINER Authors name <support@cloudron.io>
|
||||||
|
|
||||||
|
RUN mkdir -p /app/code
|
||||||
|
WORKDIR /app/code
|
||||||
|
|
||||||
|
RUN apt update && apt install -y python build-essential libxslt-dev python-dev python-virtualenv python-pybabel zlib1g-dev libffi-dev libssl-dev python-pip
|
||||||
|
RUN pip install --no-cache -r https://raw.githubusercontent.com/asciimoo/searx/master/requirements.txt
|
||||||
|
RUN curl -L https://github.com/asciimoo/searx/archive/master.tar.gz | tar -xz --strip-components 1 -f -
|
||||||
|
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
|
||||||
|
|
||||||
|
EXPOSE 8888
|
||||||
|
|
||||||
|
ADD start.sh /app/
|
||||||
|
|
||||||
|
CMD [ "/app/start.sh" ]
|
BIN
logo.png
Normal file
BIN
logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
11
start.sh
Executable file
11
start.sh
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eux
|
||||||
|
|
||||||
|
if [[ -z "$(ls -A /app/data)" ]]; then
|
||||||
|
echo "=> Detected first run"
|
||||||
|
cp /app/code/searx/settings.yml.orig /app/data/settings.yml
|
||||||
|
sed -i "s/127.0.0.1/0.0.0.0/g" /app/data/settings.yml
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec python /app/code/searx/webapp.py
|
Loading…
Reference in a new issue