Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Put all apt installs in one place
Browse files Browse the repository at this point in the history
Allows me to do the following:
- Clean up apt package lists
- Remove apt package lists as well
  • Loading branch information
uvok committed Feb 18, 2024
1 parent f7880ec commit b0a9d1f
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ ENV DEBIAN_FRONTEND=noninteractive

SHELL [ "/bin/bash", "-euxo", "pipefail", "-c" ]

# gcc-multilib make = Host tools for native_sim build
# python 3.8 is installed by toolchain manager hence older version of libffi is required
RUN <<EOT
apt-get -y update
apt-get -y upgrade
apt-get -y install wget unzip
apt-get -y install wget unzip clang-format gcc-multilib make libffi7
apt-get -y clean
rm -rf /var/lib/apt/lists/*
EOT

# Install toolchain
Expand All @@ -37,24 +41,9 @@ EOT
# ClangFormat
#
RUN <<EOT
apt-get -y install clang-format
wget -qO- https://raw.githubusercontent.com/nrfconnect/sdk-nrf/${sdk_nrf_branch}/.clang-format > /workdir/.clang-format
EOT

#
# Host tools for native_sim build
#
RUN <<EOT
apt-get -y install gcc-multilib make
EOT

#
# python 3.8 is installed by toolchain manager hence older version of libffi is required
#
RUN <<EOT
apt-get -y install libffi7
EOT

# Nordic command line tools
# Releases: https://www.nordicsemi.com/Products/Development-tools/nrf-command-line-tools/download
RUN <<EOT
Expand Down

0 comments on commit b0a9d1f

Please sign in to comment.