soccer-ball-detection / Dockerfile
eeeeeeeeeeeeee3's picture
Upload Dockerfile with huggingface_hub
c4325be verified
raw
history blame contribute delete
562 Bytes
FROM pytorch/pytorch:2.1.0-cuda12.1-cudnn8-runtime
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
libgl1-mesa-glx \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Expose Streamlit port
EXPOSE 8501
# Default command (can be overridden)
CMD ["streamlit", "run", "src/visualization/app.py", "--server.port", "8501", "--server.address", "0.0.0.0"]