Tanusree88's picture
Update Docker
edc5644 verified
raw
history blame
No virus
761 Bytes
# Use the official Python 3.10 image
FROM python:3.10
# Set the working directory in the container
WORKDIR /app
# Install system dependencies (if needed, you can add more here)
RUN apt-get update && apt-get install -y \
git \
git-lfs \
ffmpeg \
libsm6 \
libxext6 \
cmake \
rsync \
libgl1-mesa-glx
# Copy requirements.txt to the working directory
COPY requirements.txt .
# Upgrade pip to avoid any compatibility issues
RUN pip install --upgrade pip
# Install the required Python packages
RUN pip install -r requirements.txt
# Copy the rest of the application code to the working directory
COPY . .
# Command to run the app with Streamlit
CMD ["streamlit", "run", "app.py", "--server.port=8080", "--server.address=0.0.0.0"]