Added docker and readme

This commit is contained in:
2026-01-11 07:14:22 +03:00
parent 2b68dbac20
commit dacadebd28
3 changed files with 126 additions and 0 deletions

15
docker/Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["python", "main.py"]

16
docker/docker-compose.yml Normal file
View File

@@ -0,0 +1,16 @@
version: '3.8'
services:
bot:
build:
context: ..
dockerfile: docker/Dockerfile
container_name: marzban_bot
restart: unless-stopped
volumes:
- ../:/app
- ../bot.db:/app/bot.db
env_file:
- ../.env
ports:
- "8888:8888"