Skip to content

Commit 6bfde37

Browse files
committed
Dockerfile: Support for mbed-cli
1 parent b6607b7 commit 6bfde37

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

Dockerfile

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,22 @@ FROM debian:buster-slim
22

33
RUN apt-get update \
44
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
5-
curl git \
6-
build-essential cmake ninja-build clang gcc-arm-none-eabi srecord \
7-
python3 python3-dev \
8-
python3-pip python3-setuptools python3-usb \
5+
curl git mercurial \
6+
build-essential cmake ninja-build clang srecord \
7+
binutils-arm-none-eabi crossbuild-essential-armhf gcc-arm-none-eabi \
8+
python3 python3-dev python3-pip python3-setuptools python3-usb \
99
libffi-dev libssl-dev libxml2-dev \
1010
&& rm -rf /var/lib/apt/lists/*
1111

12-
RUN pip3 install -U yotta
12+
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 2
1313

14-
RUN mkdir /yotta
15-
WORKDIR /yotta
14+
RUN pip3 install -U mbed-cli yotta
15+
16+
RUN cd /tmp && mbed new test && cd test \
17+
&& pip3 install -r mbed-os/requirements.txt \
18+
&& mbed compile >/dev/null 2>&1; cd /tmp \
19+
&& rm -r /tmp/test \
20+
&& mbed config --global toolchain gcc_arm
21+
22+
RUN mkdir /app
23+
WORKDIR /app

0 commit comments

Comments
 (0)