FROM nvcr.io/nvidia/pytorch:23.12-py3 # YOLOv8 RUN pip install ultralytics RUN pip install opencv-python==4.6.0.66 RUN pip install Pillow==10.3.0 # FastAPI RUN pip install fastapi uvicorn # Streamlit RUN pip install streamlit # Fonts RUN apt update && apt install fonts-dejavu -y # Download model weights WORKDIR /app RUN wget https://github.com/ultralytics/assets/releases/download/v8.2.0/yolov8l-pose.pt -O /app/yolov8l-pose.pt COPY . /app USER root EXPOSE 8501 CMD streamlit run app.py \ --server.headless true \ --server.enableCORS false \ --server.enableXsrfProtection false \ --server.fileWatcherType none