Skullbot/Dockerfile

31 lines
597 B
Text
Raw Normal View History

2025-09-19 23:00:39 +02:00
# --- 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 \
2025-09-19 23:35:01 +02:00
pkg-config \
libvirt-dev \
2025-09-19 23:00:39 +02:00
&& 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"]