|
|
@ -3,7 +3,7 @@
|
|
|
|
# Image is CPU-optimized for ONNX, OpenVINO and PyTorch YOLOv8 deployments
|
|
|
|
# Image is CPU-optimized for ONNX, OpenVINO and PyTorch YOLOv8 deployments
|
|
|
|
|
|
|
|
|
|
|
|
# Start FROM Ubuntu image https://hub.docker.com/_/ubuntu
|
|
|
|
# Start FROM Ubuntu image https://hub.docker.com/_/ubuntu
|
|
|
|
FROM ubuntu:22.10
|
|
|
|
FROM ubuntu:lunar-20230615
|
|
|
|
|
|
|
|
|
|
|
|
# Downloads to user config dir
|
|
|
|
# Downloads to user config dir
|
|
|
|
ADD https://ultralytics.com/assets/Arial.ttf https://ultralytics.com/assets/Arial.Unicode.ttf /root/.config/Ultralytics/
|
|
|
|
ADD https://ultralytics.com/assets/Arial.ttf https://ultralytics.com/assets/Arial.Unicode.ttf /root/.config/Ultralytics/
|
|
|
@ -23,6 +23,9 @@ WORKDIR /usr/src/ultralytics
|
|
|
|
RUN git clone https://github.com/ultralytics/ultralytics /usr/src/ultralytics
|
|
|
|
RUN git clone https://github.com/ultralytics/ultralytics /usr/src/ultralytics
|
|
|
|
ADD https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8n.pt /usr/src/ultralytics/
|
|
|
|
ADD https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8n.pt /usr/src/ultralytics/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Remove python3.11/EXTERNALLY-MANAGED or use 'pip install --break-system-packages' avoid 'externally-managed-environment' Ubuntu nightly error
|
|
|
|
|
|
|
|
RUN rm -rf /usr/lib/python3.11/EXTERNALLY-MANAGED
|
|
|
|
|
|
|
|
|
|
|
|
# Install pip packages
|
|
|
|
# Install pip packages
|
|
|
|
RUN python3 -m pip install --upgrade pip wheel
|
|
|
|
RUN python3 -m pip install --upgrade pip wheel
|
|
|
|
RUN pip install --no-cache -e . thop --extra-index-url https://download.pytorch.org/whl/cpu
|
|
|
|
RUN pip install --no-cache -e . thop --extra-index-url https://download.pytorch.org/whl/cpu
|
|
|
|