Spaces:
Sleeping
Sleeping
File size: 1,156 Bytes
d105832 0bf0659 d105832 0bf0659 d105832 0bf0659 d105832 0bf0659 d105832 0bf0659 d105832 0bf0659 d105832 0bf0659 d105832 |
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 37 38 39 40 41 42 |
FROM python:3.10-slim
# ------------------------------------------------
# Install system packages required by OpenCV & YOLO
# ------------------------------------------------
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender1 \
libgl1 \
libopencv-dev \
python3-opencv \
&& rm -rf /var/lib/apt/lists/*
# ------------------------------------------------
# App directory
# ------------------------------------------------
WORKDIR /app
# ------------------------------------------------
# Install Python deps
# ------------------------------------------------
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# ------------------------------------------------
# Copy all files
# ------------------------------------------------
COPY . .
# ------------------------------------------------
# Streamlit settings
# ------------------------------------------------
EXPOSE 7860
ENV STREAMLIT_SERVER_HEADLESS=true
ENV STREAMLIT_SERVER_PORT=7860
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
CMD ["streamlit", "run", "app.py"]
|