Askhat777 commited on
Commit
f334841
·
verified ·
1 Parent(s): 0c75f9b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Установка необходимых системных утилит
6
+ RUN apt-get update && apt-get install -y \
7
+ build-essential \
8
+ curl \
9
+ software-properties-common \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ COPY requirements.txt .
13
+
14
+ RUN pip3 install --no-cache-dir -r requirements.txt
15
+
16
+ COPY . .
17
+
18
+ # Hugging Face Spaces по умолчанию ожидает порт 7860
19
+ EXPOSE 7860
20
+
21
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]