-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile.zephyr
More file actions
66 lines (58 loc) · 1.3 KB
/
Dockerfile.zephyr
File metadata and controls
66 lines (58 loc) · 1.3 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
apt-utils \
ca-certificates \
git \
git-core \
libncurses-dev \
make \
python3 \
unzip \
wget \
xz-utils \
zip \
python3 \
python3-pip \
python3-pexpect \
python3-git \
python3-jinja2 \
locales \
locales-all \
chrpath \
cpio \
diffstat \
gawk \
iputils-ping \
python3-distutils \
gcc-multilib \
build-essential \
socat \
debianutils \
xterm \
vim \
bc \
tmux \
git-lfs \
liblz4-tool \
zstd \
ca-certificates \
cmake \
ninja-build \
python3-pyelftools \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
RUN wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.1/zephyr-sdk-0.16.1_linux-x86_64_minimal.tar.xz && tar xvf zephyr-sdk-0.16.1_linux-x86_64_minimal.tar.xz -C /usr/local
RUN /usr/local/zephyr-sdk-0.16.1/setup.sh -t all -c
RUN pip3 install west
RUN pip3 install pylint
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV USER_NAME dev
ARG host_uid=1000
ARG host_gid=1000
RUN groupadd -g $host_gid $USER_NAME && \
useradd -g $host_gid -m -s /bin/bash -u $host_uid $USER_NAME
USER dev
WORKDIR /home/dev