You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
391 B

2 months ago
FROM python:3.9-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential ffmpeg git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir git+https://github.com/ultralytics/ultralytics@yolo-serve litserve
ENTRYPOINT ["/bin/sh", "-c" ,"/usr/local/bin/yolo serve"]