anfastech's picture
Fix: Quote numpy version in Dockerfile
cd936ec
raw
history blame contribute delete
571 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install system dependencies FIRST
RUN apt-get update && apt-get install -y \
ffmpeg \
libsndfile1 \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements
COPY requirements.txt .
# Install Python dependencies in CORRECT ORDER
# numpy MUST be first, before torch/torchaudio
RUN pip install --no-cache-dir "numpy>=1.24.0,<2.0.0"
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Expose port
EXPOSE 7860
# Run with proper Python settings
ENV PYTHONUNBUFFERED=1
CMD ["python", "app.py"]