2022-05-10 13:55:27 +02:00
|
|
|
FROM ubuntu:22.04
|
2020-12-17 14:12:06 +01:00
|
|
|
|
2020-12-18 18:58:34 +01:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
2023-11-12 14:09:41 +01:00
|
|
|
ARG NODE_MAJOR=20
|
2020-12-18 18:58:34 +01:00
|
|
|
RUN apt-get update -qq \
|
2023-11-12 14:09:41 +01:00
|
|
|
&& apt-get install -y ca-certificates curl gnupg \
|
|
|
|
&& mkdir -p /etc/apt/keyrings \
|
|
|
|
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
|
|
|
|
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" > /etc/apt/sources.list.d/nodesource.list \
|
|
|
|
&& apt-get update -qq \
|
2020-12-18 18:58:34 +01:00
|
|
|
&& apt-get install -y \
|
2020-12-17 14:12:06 +01:00
|
|
|
# x86_64 / generic packages
|
2020-12-18 18:58:34 +01:00
|
|
|
bash \
|
|
|
|
build-essential \
|
|
|
|
cmake \
|
|
|
|
git \
|
|
|
|
make \
|
2023-11-12 14:09:41 +01:00
|
|
|
nodejs \
|
2020-12-18 18:58:34 +01:00
|
|
|
python3 \
|
|
|
|
python3-pip \
|
2023-09-20 21:39:09 +02:00
|
|
|
python3-pil \
|
2022-05-10 13:55:27 +02:00
|
|
|
python-is-python3 \
|
2020-12-18 18:58:34 +01:00
|
|
|
tar \
|
|
|
|
unzip \
|
2022-04-24 18:53:38 +02:00
|
|
|
wget \
|
2022-05-10 13:55:27 +02:00
|
|
|
# aarch64 packages
|
2020-12-18 18:58:34 +01:00
|
|
|
libffi-dev \
|
|
|
|
libssl-dev \
|
2021-01-26 20:31:45 +01:00
|
|
|
python3-dev \
|
2021-05-14 00:07:32 +02:00
|
|
|
git \
|
2022-05-08 22:53:22 +02:00
|
|
|
apt-utils \
|
2022-09-11 12:43:30 +02:00
|
|
|
pkg-config \
|
|
|
|
libpixman-1-dev \
|
|
|
|
libcairo2-dev \
|
|
|
|
libpango-1.0-0 \
|
|
|
|
ibpango1.0-dev \
|
|
|
|
libpangocairo-1.0-0 \
|
2020-12-18 18:58:34 +01:00
|
|
|
&& rm -rf /var/cache/apt/* /var/lib/apt/lists/*;
|
2020-12-17 14:12:06 +01:00
|
|
|
|
2021-05-14 00:07:32 +02:00
|
|
|
# Git needed for PROJECT_GIT_COMMIT_HASH variable setting
|
|
|
|
|
2020-12-17 14:12:06 +01:00
|
|
|
RUN pip3 install adafruit-nrfutil
|
2021-02-14 14:19:30 +01:00
|
|
|
RUN pip3 install -Iv cryptography==3.3
|
2022-05-10 13:55:27 +02:00
|
|
|
RUN pip3 install cbor
|
2022-04-24 18:53:38 +02:00
|
|
|
RUN npm i lv_font_conv@1.5.2 -g
|
2020-12-17 14:12:06 +01: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"]
|