Video0002 / Dockerfile
ZeeAI1's picture
Update Dockerfile
43c3389 verified
raw
history blame contribute delete
606 Bytes
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"]