From 8a7173cb29a3805df2c455b4b335da50fa08bf5f Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 17 Feb 2023 23:47:42 +0100 Subject: [PATCH] Improve Dockerfile to make image smaller --- Dockerfile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2ea1ee4..b336ddb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,4 @@ FROM debian:latest -RUN apt-get update -RUN apt-get upgrade -y -RUN apt-get install -y python3-all python3-dev python3-pip python3-venv python3-apt apt-file dpkg-dev fakeroot build-essential devscripts debhelper dh-python python3-wheel sed lsb-release gnupg2 curl jq git python3-git rsync -RUN apt-file update +RUN apt-get update && apt-get install --no-install-recommends -y python3-all python3-dev python3-pip python3-venv python3-apt apt-file dpkg-dev fakeroot build-essential devscripts debhelper dh-python python3-wheel sed lsb-release gnupg2 curl jq git python3-git rsync && apt-get clean && rm -rf /var/lib/apt/lists/* && apt-file update RUN python3 -m pip install wheel2deb pylint pytest flake8 flake8-junit-report pylint-junit junitparser -RUN git clone https://gitea.zionetrix.net/bn8/gitdch.git /usr/local/src/gitdch -RUN ln -s /usr/local/src/gitdch/gitdch /usr/local/bin/gitdch +RUN git clone https://gitea.zionetrix.net/bn8/gitdch.git /usr/local/src/gitdch && ln -s /usr/local/src/gitdch/gitdch /usr/local/bin/gitdch