-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 842 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ARG NCS_VERSION=v3.2.0-preview2
FROM ghcr.io/nrfconnect/sdk-nrf-toolchain:${NCS_VERSION}
ARG NCS_VERSION
RUN apt-get update && apt-get install -y \
curl \
zip \
&& rm -rf /var/lib/apt/lists/*
# Manually install nRF-Connect SDK
RUN west init -m https://github.com/nrfconnect/sdk-nrf --mr ${NCS_VERSION} /opt/ncs/${NCS_VERSION} && \
cd /opt/ncs/${NCS_VERSION} && \
west update --narrow -o=--depth=1 && \
west zephyr-export
# Save NCS version as an environment variable, for use in the container
ENV MEMFAULT_NCS_VERSION=${NCS_VERSION}
# Remove the built-in bashrc shim, it tries to install J-Link
RUN rm /opt/.bashrc
ENTRYPOINT ["/bin/bash", "-c", "source /opt/toolchain-env.sh && exec \"$@\"", "--"]
CMD ["/bin/bash"]
LABEL org.opencontainers.image.source="https://github.com/memfault/memfault-ncs-quickstart-fw"