This commit is contained in:
End 2026-03-12 12:04:24 -07:00
parent ed7d5672f1
commit e4a741db72
No known key found for this signature in database

30
Dockerfile Normal file
View file

@ -0,0 +1,30 @@
FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1
ENV POETRY_VIRTUALENVS_CREATE=false
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
ffmpeg \
pkg-config \
libffi-dev \
libsodium-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN python -m pip install --upgrade pip setuptools wheel \
&& pip install --no-cache-dir -r /app/requirements.txt
COPY . /app
RUN useradd --create-home --shell /bin/bash app \
&& chown -R app:app /app
USER app
WORKDIR /home/app
CMD ["python", "/app/bot.py"]