Yermek68 commited on
Commit
b2e3720
·
verified ·
1 Parent(s): d4e43b5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -7
Dockerfile CHANGED
@@ -1,20 +1,23 @@
1
- # ---- Base Image ----
 
 
2
  FROM python:3.10-slim
3
 
4
  WORKDIR /app
5
 
6
- # ---- System deps ----
7
  RUN apt-get update && apt-get install -y git wget curl && rm -rf /var/lib/apt/lists/*
8
 
9
- # ---- Copy project ----
10
  COPY requirements.txt .
 
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
 
13
  COPY app.py .
14
 
15
- # ---- Preload fallback model ----
16
- RUN python -c "from transformers import pipeline; pipeline('text-generation', model='sshleifer/tiny-gpt2')"
17
-
18
  EXPOSE 7860
19
 
20
- CMD ["python", "app.py"]
 
 
1
+ # ───────────────────────────────
2
+ # Eroha v6.5 Hybrid Enterprise (Production Dockerfile)
3
+ # ───────────────────────────────
4
  FROM python:3.10-slim
5
 
6
  WORKDIR /app
7
 
8
+ # Устанавливаем базовые утилиты
9
  RUN apt-get update && apt-get install -y git wget curl && rm -rf /var/lib/apt/lists/*
10
 
11
+ # Копируем зависимости
12
  COPY requirements.txt .
13
+
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
+ # Копируем приложение
17
  COPY app.py .
18
 
19
+ # Экспонируем порт Hugging Face
 
 
20
  EXPOSE 7860
21
 
22
+ # Запуск FastAPI + Gradio
23
+ CMD ["python", "app.py"]