Pin Docker-cpu `FROM ubuntu:20.04` (#7677)
Browse files
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:
|
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 |
-
|
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
|
19 |
-
RUN
|
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 |
|