From 12a35d8f36050e0b5b52c4c50c0b9cdd95affe85 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Thu, 30 Sep 2021 06:23:09 -0700 Subject: [PATCH] Implement Docker best practices on efr32 image (#10033) Some of these best practices are: * Pin versions * Avoid additional packages installation * Clean all missing after apt command Signed-off-by: Victor Morales --- .../docker/images/chip-build-efr32/Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/integrations/docker/images/chip-build-efr32/Dockerfile b/integrations/docker/images/chip-build-efr32/Dockerfile index b744e687a73c1d..0ef3bfc62edcc3 100644 --- a/integrations/docker/images/chip-build-efr32/Dockerfile +++ b/integrations/docker/images/chip-build-efr32/Dockerfile @@ -1,13 +1,13 @@ ARG VERSION=latest FROM connectedhomeip/chip-build:${VERSION} - - - # GNU ARM Embedded toolchain, cross compiler for various platform builds RUN set -x \ && apt-get update \ - && DEBIAN_FRONTEND=noninteractive apt-get install -fy \ - gcc-arm-none-eabi \ - binutils-arm-none-eabi \ - ccache + && DEBIAN_FRONTEND=noninteractive apt-get install -fy --no-install-recommends \ + gcc-arm-none-eabi=15:9-2019-q4-0ubuntu1 \ + binutils-arm-none-eabi=2.34-4ubuntu1+13ubuntu1 \ + ccache=3.7.7-1 \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/ \ + && : # last line