Add Dockerfile
This commit is contained in:
parent
1667827dc4
commit
065e2b8462
1 changed files with 29 additions and 0 deletions
29
Dockerfile
Normal file
29
Dockerfile
Normal file
|
@ -0,0 +1,29 @@
|
|||
# --- Base Image ---
|
||||
FROM python:3.11-slim
|
||||
|
||||
# --- System dependencies ---
|
||||
RUN apt-get update && apt-get install -y \
|
||||
ffmpeg \
|
||||
python3-dev \
|
||||
libffi-dev \
|
||||
libnacl-dev \
|
||||
build-essential \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# --- Set work directory ---
|
||||
WORKDIR /app
|
||||
|
||||
# --- Copy requirements ---
|
||||
COPY requirements.txt .
|
||||
|
||||
# --- Install python dependencies ---
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# --- Copy bot code ---
|
||||
COPY . .
|
||||
|
||||
# --- Set environment variables ---
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
# --- Start bot ---
|
||||
CMD ["python", "bot.py"]
|
Loading…
Add table
Reference in a new issue