SalesAI / Dockerfile
Zasha1's picture
Update Dockerfile
0922a62 verified
raw
history blame
694 Bytes
# Use the Hugging Face Spaces base image
FROM huggingface/platform:latest
# Install system dependencies for PyAudio and other required libraries
RUN apt-get update && apt-get install -y \
portaudio19-dev \
libasound-dev \
libportaudio2 \
libportaudiocpp0 \
gcc \
g++ \
python3-dev \
&& apt-get clean
# Set the working directory inside the container
WORKDIR /app
# Copy all project files into the container
COPY . /app
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the Streamlit default port
EXPOSE 8501
# Run the Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]