Files
marzban-sub-bot/Dockerfile
T
2026-07-10 00:03:30 +03:00

21 lines
394 B
Docker

FROM python:3.13-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY bot.py ./
COPY vpn_bot ./vpn_bot
RUN useradd --create-home --uid 10001 botuser \
&& mkdir -p /app/data \
&& chown -R botuser:botuser /app
USER botuser
CMD ["python", "bot.py", "--config", "/app/config.toml"]