File size: 606 Bytes
012e08b 43c3389 |
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 |
FROM python:3.10-slim
# Set environment variables
ENV PIP_NO_CACHE_DIR=true \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
# Install system dependencies
RUN apt-get update && apt-get install -y \
ffmpeg \
libsndfile1 \
git \
&& apt-get clean
# Set workdir
WORKDIR /app
# Copy files
COPY requirements.txt requirements.txt
COPY app.py app.py
# Install Python dependencies
RUN pip install --upgrade pip
RUN pip install numpy==1.24.3
RUN pip install -r requirements.txt
# Run the Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] |