- aiogram 3 bot with commands /start /check /status /stop - InstagramMonitor: periodic check of followees stories and posts - Docker deployment with docker-compose - State tracking to avoid duplicate sends - Auto-cleanup of old media files
17 lines
308 B
Docker
17 lines
308 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends ffmpeg && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
RUN mkdir -p /data/downloads /data/session
|
|
|
|
CMD ["python", "bot.py"]
|