FROM nvcr.io/nvidia/pytorch:22.11-py3 (#10279)
* Update Docker usage examples * Update Dockerfile Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> * Update DEBIAN_FRONTEND Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>pull/10292/merge
parent
7398d2d77c
commit
bfa1f23045
|
@ -3,7 +3,7 @@
|
||||||
# Image is CUDA-optimized for YOLOv5 single/multi-GPU training and inference
|
# Image is CUDA-optimized for YOLOv5 single/multi-GPU training and inference
|
||||||
|
|
||||||
# Start FROM NVIDIA PyTorch image https://ngc.nvidia.com/catalog/containers/nvidia:pytorch
|
# Start FROM NVIDIA PyTorch image https://ngc.nvidia.com/catalog/containers/nvidia:pytorch
|
||||||
FROM nvcr.io/nvidia/pytorch:22.10-py3
|
FROM nvcr.io/nvidia/pytorch:22.11-py3
|
||||||
RUN rm -rf /opt/pytorch # remove 1.2GB dir
|
RUN rm -rf /opt/pytorch # remove 1.2GB dir
|
||||||
|
|
||||||
# Downloads to user config dir
|
# Downloads to user config dir
|
||||||
|
|
|
@ -9,8 +9,9 @@ FROM arm64v8/ubuntu:20.04
|
||||||
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/
|
||||||
|
|
||||||
# Install linux packages
|
# Install linux packages
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
RUN apt update
|
RUN apt update
|
||||||
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y tzdata
|
RUN TZ=Etc/UTC apt install -y tzdata
|
||||||
RUN apt install --no-install-recommends -y python3-pip git zip curl htop gcc libgl1-mesa-glx libglib2.0-0 libpython3-dev
|
RUN apt install --no-install-recommends -y python3-pip git zip curl htop gcc libgl1-mesa-glx libglib2.0-0 libpython3-dev
|
||||||
# RUN alias python=python3
|
# RUN alias python=python3
|
||||||
|
|
||||||
|
@ -30,12 +31,13 @@ WORKDIR /usr/src/app
|
||||||
# Copy contents
|
# Copy contents
|
||||||
# COPY . /usr/src/app (issues as not a .git directory)
|
# COPY . /usr/src/app (issues as not a .git directory)
|
||||||
RUN git clone https://github.com/ultralytics/yolov5 /usr/src/app
|
RUN git clone https://github.com/ultralytics/yolov5 /usr/src/app
|
||||||
|
ENV DEBIAN_FRONTEND teletype
|
||||||
|
|
||||||
|
|
||||||
# Usage Examples -------------------------------------------------------------------------------------------------------
|
# Usage Examples -------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Build and Push
|
# Build and Push
|
||||||
# t=ultralytics/yolov5:latest-M1 && sudo docker build --platform linux/arm64 -f utils/docker/Dockerfile-arm64 -t $t . && sudo docker push $t
|
# t=ultralytics/yolov5:latest-arm64 && sudo docker build --platform linux/arm64 -f utils/docker/Dockerfile-arm64 -t $t . && sudo docker push $t
|
||||||
|
|
||||||
# Pull and Run
|
# Pull and Run
|
||||||
# t=ultralytics/yolov5:latest-M1 && sudo docker pull $t && sudo docker run -it --ipc=host -v "$(pwd)"/datasets:/usr/src/datasets $t
|
# t=ultralytics/yolov5:latest-arm64 && sudo docker pull $t && sudo docker run -it --ipc=host -v "$(pwd)"/datasets:/usr/src/datasets $t
|
||||||
|
|
|
@ -9,8 +9,9 @@ FROM ubuntu:20.04
|
||||||
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/
|
||||||
|
|
||||||
# Install linux packages
|
# Install linux packages
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
RUN apt update
|
RUN apt update
|
||||||
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y tzdata
|
RUN TZ=Etc/UTC apt install -y tzdata
|
||||||
RUN apt install --no-install-recommends -y python3-pip git zip curl htop libgl1-mesa-glx libglib2.0-0 libpython3-dev gnupg
|
RUN apt install --no-install-recommends -y python3-pip git zip curl htop libgl1-mesa-glx libglib2.0-0 libpython3-dev gnupg
|
||||||
# RUN alias python=python3
|
# RUN alias python=python3
|
||||||
|
|
||||||
|
@ -29,6 +30,7 @@ WORKDIR /usr/src/app
|
||||||
# Copy contents
|
# Copy contents
|
||||||
# COPY . /usr/src/app (issues as not a .git directory)
|
# COPY . /usr/src/app (issues as not a .git directory)
|
||||||
RUN git clone https://github.com/ultralytics/yolov5 /usr/src/app
|
RUN git clone https://github.com/ultralytics/yolov5 /usr/src/app
|
||||||
|
ENV DEBIAN_FRONTEND teletype
|
||||||
|
|
||||||
|
|
||||||
# Usage Examples -------------------------------------------------------------------------------------------------------
|
# Usage Examples -------------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue