add docker

This commit is contained in:
2026-07-10 00:03:30 +03:00
parent 11f03eae41
commit 6f904438e2
4 changed files with 84 additions and 2 deletions
+20
View File
@@ -0,0 +1,20 @@
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"]