yolov8-pose-api / Dockerfile
unfinity
test
883b8b9
raw
history blame
520 Bytes
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 7860
CMD uvicorn test:app --port 7860 --host 0.0.0.0