Files
please-pay-me/context/2026-09-13_04-51-08_dockerfile.md
T
2026-09-21 04:06:43 +03:00

16 lines
502 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-09-13 — Dockerfile для бота
## Запрос
Написать Dockerfile.
## Сделано
- `Dockerfile``python:3.12-slim`, non-root user `bot`, `CMD python -m bot.main`
- `.dockerignore` — исключает `.venv`, `.env`, `data/`, кэши
- В README добавлен пример `docker build` / `docker run` с volume для SQLite
## Запуск
```bash
docker build -t please-pay-me-bot .
docker run --rm -e BOT_TOKEN=... -v ./data:/app/data please-pay-me-bot
```