robsstapi / Dockerfile
WillemVH's picture
Update Dockerfile
6998252 verified
raw
history blame contribute delete
346 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install ffmpeg only (no compilation needed)
RUN apt-get update && apt-get install -y \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app
COPY app.py .
EXPOSE 7860
CMD ["python", "app.py"]