Update Dockerfile `--no-install-recommends` (#7846)
* Update Dockerfile-cpu `--no-install-recommends` Per https://ubuntu.com/blog/we-reduced-our-docker-images-by-60-with-no-install-recommends * Update Dockerfile-M1 * Update Dockerfile * Update Dockerfile-M1 * Update Dockerfile-cpu
This commit is contained in:
parent
b52fd48b4a
commit
614ef110b3
|
|
@ -8,7 +8,7 @@ RUN rm -rf /opt/pytorch # remove 1.2GB dir
|
|||
ADD https://ultralytics.com/assets/Arial.ttf https://ultralytics.com/assets/Arial.Unicode.ttf /root/.config/Ultralytics/
|
||||
|
||||
# Install linux packages
|
||||
RUN apt update && apt install -y zip htop screen libgl1-mesa-glx
|
||||
RUN apt update && apt install --no-install-recommends -y zip htop screen libgl1-mesa-glx
|
||||
|
||||
# Install pip packages
|
||||
COPY requirements.txt .
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ ADD https://ultralytics.com/assets/Arial.ttf https://ultralytics.com/assets/Aria
|
|||
# Install linux packages
|
||||
RUN apt update
|
||||
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y tzdata
|
||||
RUN apt install -y python3-pip git zip curl htop screen libgl1-mesa-glx libglib2.0-0
|
||||
RUN apt install --no-install-recommends -y python3-pip git zip curl htop screen libgl1-mesa-glx libglib2.0-0
|
||||
# RUN alias python=python3
|
||||
|
||||
# Install pip packages
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ ADD https://ultralytics.com/assets/Arial.ttf https://ultralytics.com/assets/Aria
|
|||
# Install linux packages
|
||||
RUN apt update
|
||||
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y tzdata
|
||||
RUN apt install -y python3-pip git zip curl htop screen libgl1-mesa-glx libglib2.0-0
|
||||
RUN apt install --no-install-recommends -y python3-pip git zip curl htop screen libgl1-mesa-glx libglib2.0-0
|
||||
# RUN alias python=python3
|
||||
|
||||
# Install pip packages
|
||||
|
|
|
|||
Loading…
Reference in New Issue