Senkaro commited on
Commit
c991ee8
·
1 Parent(s): 5d88043

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -8
Dockerfile CHANGED
@@ -1,13 +1,14 @@
1
- FROM python:3.9
2
 
3
- WORKDIR /code
 
4
 
5
- COPY ./requirements.txt /code/requirements.txt
6
-
7
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
 
9
  COPY . .
10
 
11
- EXPOSE 7860
12
-
13
- CMD ["shiny", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.8-slim
2
 
3
+ # Установи рабочую папку
4
+ WORKDIR /app
5
 
6
+ # Копируй файлы с требованиями и установи зависимости
7
+ COPY requirements.txt ./
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
 
10
+ # Копируй все остальные файлы проекта в рабочую папку
11
  COPY . .
12
 
13
+ # Запускаем бота
14
+ CMD ["python", "main.py"]