From 06b74ace27b93452f3f0984cb70e1d4ce54961db Mon Sep 17 00:00:00 2001 From: Mark Bumiller Date: Thu, 12 Jan 2023 10:15:48 -0500 Subject: [PATCH] cleaning apt cache removes unneded files from docker image --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 38d9a8f..c3d97f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,9 @@ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key # Install Chrome. RUN apt-get update && apt-get -y install --no-install-recommends \ google-chrome-stable \ - python3-dev + python3-dev \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* # Add pipenv RUN pip install pipenv