Spaces:
Sleeping
Sleeping
File size: 644 Bytes
d7f5844 5d99458 d7f5844 5d99458 d7f5844 5d99458 d7f5844 5d99458 d7f5844 5d99458 d2a7537 d7f5844 5d99458 d2a7537 5d99458 d7f5844 5d99458 d7f5844 |
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 |
# 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"]
|