|
|
@ -6,9 +6,6 @@ |
|
|
|
# Start FROM Debian image for arm64v8 https://hub.docker.com/r/arm64v8/debian (new) |
|
|
|
# Start FROM Debian image for arm64v8 https://hub.docker.com/r/arm64v8/debian (new) |
|
|
|
FROM arm64v8/debian:bookworm-slim |
|
|
|
FROM arm64v8/debian:bookworm-slim |
|
|
|
|
|
|
|
|
|
|
|
# Set environment variables |
|
|
|
|
|
|
|
ENV APP_HOME /usr/src/ultralytics |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Downloads to user config dir |
|
|
|
# Downloads to user config dir |
|
|
|
ADD https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.ttf \ |
|
|
|
ADD https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.ttf \ |
|
|
|
https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.Unicode.ttf \ |
|
|
|
https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.Unicode.ttf \ |
|
|
@ -21,12 +18,12 @@ RUN apt update \ |
|
|
|
&& apt install --no-install-recommends -y python3-pip git zip unzip wget curl htop gcc libgl1 libglib2.0-0 libpython3-dev gnupg g++ libusb-1.0-0 |
|
|
|
&& apt install --no-install-recommends -y python3-pip git zip unzip wget curl htop gcc libgl1 libglib2.0-0 libpython3-dev gnupg g++ libusb-1.0-0 |
|
|
|
|
|
|
|
|
|
|
|
# Create working directory |
|
|
|
# Create working directory |
|
|
|
WORKDIR $APP_HOME |
|
|
|
WORKDIR /ultralytics |
|
|
|
|
|
|
|
|
|
|
|
# Copy contents and assign permissions |
|
|
|
# Copy contents and assign permissions |
|
|
|
COPY . $APP_HOME |
|
|
|
COPY . . |
|
|
|
RUN git remote set-url origin https://github.com/ultralytics/ultralytics.git |
|
|
|
RUN git remote set-url origin https://github.com/ultralytics/ultralytics.git |
|
|
|
ADD https://github.com/ultralytics/assets/releases/download/v8.2.0/yolov8n.pt $APP_HOME |
|
|
|
ADD https://github.com/ultralytics/assets/releases/download/v8.2.0/yolov8n.pt . |
|
|
|
|
|
|
|
|
|
|
|
# Remove python3.11/EXTERNALLY-MANAGED to avoid 'externally-managed-environment' issue, Debian 12 Bookworm error |
|
|
|
# Remove python3.11/EXTERNALLY-MANAGED to avoid 'externally-managed-environment' issue, Debian 12 Bookworm error |
|
|
|
RUN rm -rf /usr/lib/python3.11/EXTERNALLY-MANAGED |
|
|
|
RUN rm -rf /usr/lib/python3.11/EXTERNALLY-MANAGED |
|
|
@ -51,4 +48,4 @@ RUN ln -sf /usr/bin/python3 /usr/bin/python |
|
|
|
# t=ultralytics/ultralytics:latest-arm64 && sudo docker pull $t && sudo docker run -it --ipc=host $t |
|
|
|
# t=ultralytics/ultralytics:latest-arm64 && sudo docker pull $t && sudo docker run -it --ipc=host $t |
|
|
|
|
|
|
|
|
|
|
|
# Pull and Run with local volume mounted |
|
|
|
# Pull and Run with local volume mounted |
|
|
|
# t=ultralytics/ultralytics:latest-arm64 && sudo docker pull $t && sudo docker run -it --ipc=host -v "$(pwd)"/shared/datasets:/usr/src/datasets $t |
|
|
|
# t=ultralytics/ultralytics:latest-arm64 && sudo docker pull $t && sudo docker run -it --ipc=host -v "$(pwd)"/shared/datasets:/datasets $t |
|
|
|