2022-05-10 11:55:27 +00:00
|
|
|
FROM ubuntu:22.04
|
2020-12-17 13:12:06 +00:00
|
|
|
|
2020-12-18 17:58:34 +00:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update -qq \
|
|
|
|
&& apt-get install -y \
|
2020-12-17 13:12:06 +00:00
|
|
|
# x86_64 / generic packages
|
2020-12-18 17:58:34 +00:00
|
|
|
bash \
|
|
|
|
build-essential \
|
|
|
|
cmake \
|
|
|
|
git \
|
|
|
|
make \
|
|
|
|
python3 \
|
|
|
|
python3-pip \
|
2022-05-10 11:55:27 +00:00
|
|
|
python-is-python3 \
|
2020-12-18 17:58:34 +00:00
|
|
|
tar \
|
|
|
|
unzip \
|
2022-04-24 16:53:38 +00:00
|
|
|
wget \
|
|
|
|
curl \
|
2022-05-10 11:55:27 +00:00
|
|
|
# aarch64 packages
|
2020-12-18 17:58:34 +00:00
|
|
|
libffi-dev \
|
|
|
|
libssl-dev \
|
2021-01-26 19:31:45 +00:00
|
|
|
python3-dev \
|
2021-05-13 22:07:32 +00:00
|
|
|
git \
|
2022-05-08 20:53:22 +00:00
|
|
|
apt-utils \
|
|
|
|
&& curl -sL https://deb.nodesource.com/setup_18.x | bash - \
|
2022-04-24 16:53:38 +00:00
|
|
|
&& apt-get install -y nodejs \
|
2020-12-18 17:58:34 +00:00
|
|
|
&& rm -rf /var/cache/apt/* /var/lib/apt/lists/*;
|
2020-12-17 13:12:06 +00:00
|
|
|
|
2021-05-13 22:07:32 +00:00
|
|
|
# Git needed for PROJECT_GIT_COMMIT_HASH variable setting
|
|
|
|
|
2020-12-17 13:12:06 +00:00
|
|
|
RUN pip3 install adafruit-nrfutil
|
2021-02-14 13:19:30 +00:00
|
|
|
RUN pip3 install -Iv cryptography==3.3
|
2022-05-10 11:55:27 +00:00
|
|
|
RUN pip3 install cbor
|
2022-04-24 16:53:38 +00:00
|
|
|
RUN npm i lv_font_conv@1.5.2 -g
|
2020-12-17 13:12:06 +00:00
|
|
|
|
|
|
|
# build.sh knows how to compile
|
|
|
|
COPY build.sh /opt/
|
|
|
|
|
|
|
|
# Lets get each in a separate docker layer for better downloads
|
|
|
|
# GCC
|
|
|
|
RUN bash -c "source /opt/build.sh; GetGcc;"
|
|
|
|
# NrfSdk
|
|
|
|
RUN bash -c "source /opt/build.sh; GetNrfSdk;"
|
|
|
|
# McuBoot
|
|
|
|
RUN bash -c "source /opt/build.sh; GetMcuBoot;"
|
|
|
|
|
|
|
|
ENV SOURCES_DIR /sources
|
|
|
|
CMD ["/opt/build.sh"]
|