Improve Dockerfile to make image smaller

This commit is contained in:
Benjamin Renard 2023-02-17 23:47:42 +01:00
parent 0ba1127410
commit 8a7173cb29

View file

@ -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