Winner / dockerfile
Arni1ntares's picture
Initial Streamlit Chatbot using Mistral 7B
e9cc6ac
# Use official Python slim base image
FROM python:3.12-slim
# Set working directory
WORKDIR /app
# Install system dependencies for pyttsx3 and SpeechRecognition
RUN apt-get update && apt-get install -y \
build-essential \
ffmpeg \
libasound2-dev \
libportaudio2 \
portaudio19-dev \
pulseaudio \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements file and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Copy your app code
COPY . .
# Expose port Streamlit runs on
EXPOSE 8501
# Run Streamlit app
CMD ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]