shaadfazal's picture
Create Dockerfile
8e0b92b verified
raw
history blame contribute delete
568 Bytes
FROM python:3.10
# Install system dependencies
RUN apt-get update && apt-get install -y \
portaudio19-dev \
python3-pyaudio \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /home/user/app
# Copy files to container
COPY requirements.txt /tmp/requirements.txt
COPY app.py /home/user/app/app.py
# Install Python dependencies
RUN pip install --no-cache-dir -r /tmp/requirements.txt
# Expose Streamlit default port
EXPOSE 7860
# Run Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.enableCORS", "false"]