ЯRаСлав commited on
Commit
7edd95a
·
1 Parent(s): 2512572

Dockerfile added.

Browse files
Files changed (2) hide show
  1. Dockerfile +21 -0
  2. README.md +7 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Встановлюємо залежності
4
+ RUN apt-get update && apt-get install -y \
5
+ git curl wget \
6
+ build-essential \
7
+ libssl-dev libffi-dev \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # Клонувати open-webui
11
+ RUN git clone https://github.com/open-webui/open-webui /app
12
+ WORKDIR /app
13
+
14
+ # Встановити Python-залежності
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
+
17
+ # Hugging Face працює через порт 7860
18
+ ENV PORT=7860
19
+
20
+ # Запуск
21
+ CMD ["python3", "main.py"]
README.md CHANGED
@@ -9,3 +9,10 @@ short_description: webui
9
  ---
10
 
11
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
9
  ---
10
 
11
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
12
+
13
+
14
+ # Open WebUI on Hugging Face Space
15
+
16
+ This Space runs [open-webui](https://github.com/open-webui/open-webui) inside a Docker container on Hugging Face infrastructure.
17
+
18
+ URL: `/` or `/chat`