From 69d6a596a859cffe518b16562a73abbd40f258c8 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 10 Jan 2023 11:22:39 +0100 Subject: [PATCH] Docker: try to make images lighter --- docker/latest/Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docker/latest/Dockerfile b/docker/latest/Dockerfile index 4dd1cc4..2d655ee 100644 --- a/docker/latest/Dockerfile +++ b/docker/latest/Dockerfile @@ -1,7 +1,4 @@ FROM debian:latest -RUN echo "deb http://debian.zionetrix.net stable main" > /etc/apt/sources.list.d/zionetrix.list -RUN apt-get -o Acquire::AllowInsecureRepositories=true -o Acquire::AllowDowngradeToInsecureRepositories=true update -RUN apt-get -o APT::Get::AllowUnauthenticated=true install --yes zionetrix-archive-keyring -RUN apt-get update -RUN apt-get install -y python3-all python3-dev python3-pip python3-venv python3-mylib build-essential git +RUN echo "deb http://debian.zionetrix.net stable main" > /etc/apt/sources.list.d/zionetrix.list && apt-get -o Acquire::AllowInsecureRepositories=true -o Acquire::AllowDowngradeToInsecureRepositories=true update && apt-get -o APT::Get::AllowUnauthenticated=true install --yes zionetrix-archive-keyring && apt-get clean && rm -fr rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get upgrade -y && apt-get install -y python3-all python3-dev python3-pip python3-venv python3-mylib build-essential git && apt-get clean && rm -fr rm -rf /var/lib/apt/lists/* RUN python3 -m pip install pylint pytest flake8 flake8-junit-report pylint-junit junitparser