File size: 923 Bytes
2a97410 5fc78bc 2a97410 0922a62 2a97410 0922a62 5fc78bc 88456fa 5fc78bc 2a97410 5fc78bc 582e1d3 342f0a3 5fc78bc 2a97410 88456fa 7de77c7 5fc78bc 88456fa 5fc78bc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# 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"] |