Spaces:
Running
Running
File size: 529 Bytes
e70596d 1191524 e70596d 1191524 e70596d 1191524 e70596d 1191524 e70596d 1191524 e70596d 1191524 e70596d 1191524 e70596d 1191524 |
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 |
# Base Python image
FROM python:3.10-slim
# Set environment vars
ENV NUMBA_CACHE_DIR=/tmp/numba_cache \
PYTHONUNBUFFERED=1 \
HF_HUB_DISABLE_SYMLINKS_WARNING=1
# Install system dependencies
RUN apt-get update && apt-get install -y \
ffmpeg libsndfile1 libgl1 git \
&& apt-get clean
# Set workdir
WORKDIR /app
# Copy all app files
COPY . .
# Install Python dependencies
RUN pip install --upgrade pip && \
pip install -r requirements.txt
# Expose port
EXPOSE 7860
# Run Flask app
CMD ["python", "app.py"]
|