Spaces:
Sleeping
Sleeping
# Dockerfile | |
# Use the official Python image | |
FROM python:3.10-slim | |
# Install system dependencies | |
RUN apt-get update && apt-get install -y \ | |
libzbar0 \ | |
libgl1-mesa-glx \ | |
ffmpeg \ | |
libsm6 \ | |
libxext6 \ | |
cmake \ | |
git \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Set the working directory | |
WORKDIR /app | |
# Copy only necessary files | |
COPY requirements.txt ./ | |
# Install Python dependencies | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy the rest of the application code | |
COPY . . | |
# Expose the port | |
EXPOSE 7860 | |
# Run the application | |
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |