glenn-jocher commited on
Commit
e305aba
Β·
unverified Β·
1 Parent(s): c4862fc

Pin Docker-cpu `FROM ubuntu:20.04` (#7677)

Browse files
Files changed (1) hide show
  1. utils/docker/Dockerfile-cpu +5 -9
utils/docker/Dockerfile-cpu CHANGED
@@ -1,22 +1,18 @@
1
  # YOLOv5 πŸš€ by Ultralytics, GPL-3.0 license
2
 
3
  # Start FROM Ubuntu image https://hub.docker.com/_/ubuntu
4
- FROM ubuntu:latest
5
 
6
  # Install linux packages
7
  RUN apt update
8
  RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y tzdata
9
- RUN apt install -y python3-pip git zip curl htop screen libgl1-mesa-glx libglib2.0-0 software-properties-common
10
-
11
- # Install python3.9
12
- RUN add-apt-repository ppa:deadsnakes/ppa -y
13
- RUN apt install python3.9 python3.9-distutils libpython3.9 -y
14
- # RUN alias python=python3.9
15
 
16
  # Install pip packages
17
  COPY requirements.txt .
18
- RUN python3.9 -m pip install --upgrade pip
19
- RUN python3.9 -m pip install --no-cache -r requirements.txt albumentations gsutil notebook \
20
  coremltools onnx onnx-simplifier onnxruntime openvino-dev tensorflow-cpu tensorflowjs \
21
  torch torchvision --extra-index-url https://download.pytorch.org/whl/cpu
22
 
 
1
  # YOLOv5 πŸš€ by Ultralytics, GPL-3.0 license
2
 
3
  # Start FROM Ubuntu image https://hub.docker.com/_/ubuntu
4
+ FROM ubuntu:20.04
5
 
6
  # Install linux packages
7
  RUN apt update
8
  RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y tzdata
9
+ RUN apt install -y python3-pip git zip curl htop screen libgl1-mesa-glx libglib2.0-0
10
+ # RUN alias python=python3
 
 
 
 
11
 
12
  # Install pip packages
13
  COPY requirements.txt .
14
+ RUN python3 -m pip install --upgrade pip
15
+ RUN pip install --no-cache -r requirements.txt albumentations gsutil notebook \
16
  coremltools onnx onnx-simplifier onnxruntime openvino-dev tensorflow-cpu tensorflowjs \
17
  torch torchvision --extra-index-url https://download.pytorch.org/whl/cpu
18