initial dockerfile and settings
Browse files- Dockerfile +14 -0
- README.md +2 -7
- 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 |
-
|
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
|