SalesAI / Dockerfile
Zasha1's picture
Update Dockerfile
2a97410 verified
raw
history blame contribute delete
923 Bytes
# Use the official Python image as the base image
FROM python:3.9-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
libopus0 \
libgstreamer1.0-0 \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-libav \
gstreamer1.0-doc \
gstreamer1.0-tools \
libgstreamer-plugins-base1.0-dev \
libssl-dev \
libffi-dev \
&& apt-get clean
# Set the working directory inside the container
WORKDIR /app
# Copy the requirements file into the container
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code into the container
COPY . .
# 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"]