mikrotik-bot/Dockerfile

12 lines
189 B
Docker

FROM python:3.10-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN python -c "import db; db.init_db()"
CMD ["python", "bot.py"]