rm apt lists

This commit is contained in:
Florian Bezannier
2021-06-23 15:49:32 +02:00
parent abe0275a58
commit 4d593b375e
+2 -1
View File
@@ -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