From ec4a79bb6ffeafce11110565e80df28784352488 Mon Sep 17 00:00:00 2001 From: Anton Tetov Johansson <anton@tetov.se> Date: Fri, 11 Oct 2024 12:28:07 +0000 Subject: [PATCH] run apt-get update in same stage as apt install --- Dockerfile | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/Dockerfile b/Dockerfile index 209a5ac..8fd261a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,32 +4,30 @@ FROM ubuntu:jammy ARG DEBIAN_FRONTEND=noninteractive ENV TZ=Europe/Stockholm -RUN apt update && apt upgrade -# necessary -RUN apt install -y \ - python3 \ - python3-pip \ - python3-tk \ - ipython3 \ - git \ - sudo \ - man-db \ - manpages-posix \ - arp-scan +RUN apt-get update && apt install -y --no-install-recommends \ + python3 \ + python3-pip \ + python3-tk \ + ipython3 \ + git \ + sudo \ + man-db \ + manpages-posix \ + arp-scan RUN sed -i 's:^path-exclude=/usr/share/man:#path-exclude=/usr/share/man:' \ /etc/dpkg/dpkg.cfg.d/excludes RUN yes | unminimize # for some reason it's needed again -RUN apt update && apt upgrade + # nice to have -RUN apt install -y \ - vim \ - vim-youcompleteme \ - vim-python-jedi \ - zsh \ - zsh-syntax-highlighting \ - python3-python-qt-binding +RUN apt-get update && apt install -y --no-install-recommends \ + vim \ + vim-youcompleteme \ + vim-python-jedi \ + zsh \ + zsh-syntax-highlighting \ + python3-python-qt-binding # qt-binding is a really unnecessary 300MB, but i don't want # to do more matplotlib hacks -- GitLab