Spaces:
Runtime error
Runtime error
File size: 685 Bytes
9928fc1 881b45d 229449b a0e118e 229449b a0e118e 229449b 9928fc1 229449b 9928fc1 881b45d 0a1a1bb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
FROM python:3.11-slim
WORKDIR /code
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
g++ \
make \
git \
ffmpeg \
libsndfile1 \
portaudio19-dev \
python3-dev \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first to leverage Docker cache
COPY ./requirements.txt /code/requirements.txt
# Install Python packages
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy the rest of the application
COPY ./app.py /code/app.py
COPY ./templates /code/templates
COPY ./models /code/models
EXPOSE 7860
CMD ["python", "app.py"] |