MiklX commited on
Commit
c75df3c
·
1 Parent(s): d1cb106

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Используй официальный образ Python
2
+ FROM python:3.12-slim
3
+ # Установи рабочую папку
4
+ WORKDIR /app
5
+ # Копируй файлы с требованиями и установи зависимости
6
+ RUN pip install --upgrade pip
7
+ COPY requirements.txt ./
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+ # Копируй все остальные файлы проекта в рабочую папку
10
+ COPY . .
11
+ # Запускай бота
12
+ RUN chmod 777 -R ./*
13
+ RUN chmod -R 777 /app/
14
+ CMD ["python", "app.py"]