From 4d593b375e2370e21dc07b45ab5b27bf9faa2209 Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Wed, 23 Jun 2021 15:49:32 +0200 Subject: [PATCH] rm apt lists --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1442111..7020051 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,8 @@ FROM python:3-slim ARG TARGETPLATFORM COPY . /psa_car_controller/ WORKDIR /config -RUN if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then apt-get update && apt-get install -y gcc && apt-get clean ; fi ; \ +RUN if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then apt-get update && apt-get install -y gcc && apt-get clean ; \ + rm -rf /var/lib/apt/lists/* ; fi ; \ pip3 install --no-cache-dir -r /psa_car_controller/requirements.txt ; \ apt-get remove -y gcc 2> /dev/null ; \ apt-get autoremove -y