Commands: /status /logs /restart /deploy /metrics /backup CI/CD: builds Docker image, pushes to git.csrx.ru registry, deploys to server Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
12 lines
219 B
Docker
12 lines
219 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install dependencies first (cached layer)
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy bot code
|
|
COPY bot.py .
|
|
|
|
CMD ["python", "-u", "bot.py"]
|