Update Dockerfile-cpu to ubuntu:latest (#17670)
Signed-off-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Francesco Mattioli <Francesco.mttl@gmail.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
87b7a6a090
commit
15c8a22f70
3 changed files with 6 additions and 8 deletions
|
|
@ -56,7 +56,6 @@ RUN pip install numpy==1.23.5
|
||||||
# Remove extra build files
|
# Remove extra build files
|
||||||
RUN rm -rf tmp /root/.config/Ultralytics/persistent_cache.json
|
RUN rm -rf tmp /root/.config/Ultralytics/persistent_cache.json
|
||||||
|
|
||||||
|
|
||||||
# Usage Examples -------------------------------------------------------------------------------------------------------
|
# Usage Examples -------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Build and Push
|
# Build and Push
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
# Builds ultralytics/ultralytics:latest-cpu image on DockerHub https://hub.docker.com/r/ultralytics/ultralytics
|
# Builds ultralytics/ultralytics:latest-cpu image on DockerHub https://hub.docker.com/r/ultralytics/ultralytics
|
||||||
# Image is CPU-optimized for ONNX, OpenVINO and PyTorch YOLO11 deployments
|
# Image is CPU-optimized for ONNX, OpenVINO and PyTorch YOLO11 deployments
|
||||||
|
|
||||||
# Start FROM Ubuntu image https://hub.docker.com/_/ubuntu
|
# Use official Python base image for reproducibility (3.11.10 for export and 3.12.6 for inference)
|
||||||
FROM ubuntu:23.10
|
FROM python:3.11.10-slim-bookworm
|
||||||
|
|
||||||
# Set environment variables
|
# Set environment variables
|
||||||
ENV PYTHONUNBUFFERED=1 \
|
ENV PYTHONUNBUFFERED=1 \
|
||||||
|
|
@ -39,14 +39,14 @@ RUN pip install -e ".[export]" --extra-index-url https://download.pytorch.org/wh
|
||||||
RUN yolo export model=tmp/yolo11n.pt format=edgetpu imgsz=32
|
RUN yolo export model=tmp/yolo11n.pt format=edgetpu imgsz=32
|
||||||
RUN yolo export model=tmp/yolo11n.pt format=ncnn imgsz=32
|
RUN yolo export model=tmp/yolo11n.pt format=ncnn imgsz=32
|
||||||
# Requires Python<=3.10, bug with paddlepaddle==2.5.0 https://github.com/PaddlePaddle/X2Paddle/issues/991
|
# Requires Python<=3.10, bug with paddlepaddle==2.5.0 https://github.com/PaddlePaddle/X2Paddle/issues/991
|
||||||
# RUN pip install "paddlepaddle>=2.6.0" x2paddle
|
RUN pip install "paddlepaddle>=2.6.0" x2paddle
|
||||||
|
|
||||||
# Creates a symbolic link to make 'python' point to 'python3'
|
|
||||||
RUN ln -sf /usr/bin/python3 /usr/bin/python
|
|
||||||
|
|
||||||
# Remove extra build files
|
# Remove extra build files
|
||||||
RUN rm -rf tmp /root/.config/Ultralytics/persistent_cache.json
|
RUN rm -rf tmp /root/.config/Ultralytics/persistent_cache.json
|
||||||
|
|
||||||
|
# Set default command to bash
|
||||||
|
CMD ["/bin/bash"]
|
||||||
|
|
||||||
# Usage Examples -------------------------------------------------------------------------------------------------------
|
# Usage Examples -------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Build and Push
|
# Build and Push
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,6 @@ ENTRYPOINT sh -c './config.sh --url https://github.com/ultralytics/ultralytics \
|
||||||
--replace && \
|
--replace && \
|
||||||
./run.sh'
|
./run.sh'
|
||||||
|
|
||||||
|
|
||||||
# Usage Examples -------------------------------------------------------------------------------------------------------
|
# Usage Examples -------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Build and Push
|
# Build and Push
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue