mirror of
https://github.com/DerrtSML/qbittorent_bot.git
synced 2025-10-26 04:20:08 +03:00
19 lines
675 B
Docker
19 lines
675 B
Docker
FROM python:3.10-slim-buster
|
|
WORKDIR /app
|
|
# Install build dependencies if necessary (only if other solutions fail)
|
|
RUN apt-get update && apt-get install -y build-essential libpq-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
# ... rest of your Dockerfile
|
|
# Устанавливаем рабочую директорию
|
|
WORKDIR /app
|
|
|
|
# Копируем файл зависимостей и устанавливаем их
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Копируем остальные файлы приложения
|
|
COPY . .
|
|
|
|
# Команда для запуска приложения
|
|
CMD ["python", "bot.py"]
|