428th-exchange-bot/Dockerfile
Artemii Peretiachenko 501c2a5985 Add Docker Compose deploy setup for VPS.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-25 17:30:49 +02:00

20 lines
396 B
Docker

FROM python:3.12-slim
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
DATABASE_PATH=/app/data/bot.db
RUN adduser --disabled-password --gecos "" --uid 1000 bot \
&& mkdir -p /app/data \
&& chown bot:bot /app/data
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=bot:bot bot ./bot
USER bot
CMD ["python", "-m", "bot"]