notV3NOM commited on
Commit
e3dd9d9
1 Parent(s): 34a6f86

initial dockerfile and settings

Browse files
Files changed (3) hide show
  1. Dockerfile +14 -0
  2. README.md +2 -7
  3. settings.yml +11 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM docker.io/searxng/searxng:latest
2
+
3
+ USER root
4
+ RUN apk update && apk add --no-cache shadow sed
5
+
6
+ RUN useradd -m -u 1000 user
7
+ USER user
8
+
9
+ WORKDIR /home/user/app
10
+ COPY --chown=user settings.yml /etc/searxng/settings.yml
11
+ RUN sed -i "s|ultrasecretkey|$(openssl rand -hex 32)|g" /etc/searxng/settings.yml
12
+
13
+ EXPOSE 8080
14
+ CMD ["uvicorn", "searx.webapp:app", "--host", "0.0.0.0", "--port", "8080"]
README.md CHANGED
@@ -1,11 +1,6 @@
1
  ---
2
  title: Search
3
- emoji: 🏢
4
- colorFrom: yellow
5
- colorTo: pink
6
  sdk: docker
7
  pinned: false
8
- license: agpl-3.0
9
- ---
10
-
11
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
  title: Search
 
 
 
3
  sdk: docker
4
  pinned: false
5
+ app_port: 8080
6
+ ---
 
 
settings.yml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ use_default_settings: true
2
+ server:
3
+ secret_key: "ultrasecretkey"
4
+ limiter: false
5
+ image_proxy: false
6
+ ui:
7
+ static_use_hash: true
8
+ search:
9
+ safe_search: 0
10
+ formats:
11
+ - json