-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (24 loc) · 1.24 KB
/
Dockerfile
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
FROM ubuntu:focal
# Installing make, git, python3 and setting it as the default python
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -qq && \
apt-get install -y --no-install-recommends wget git make && \
apt-get install -y --no-install-recommends python3 python3-pip && \
update-alternatives --install /usr/bin/python python /usr/bin/python3 1 && \
apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*
# Installing Arm GCC
WORKDIR /opt/
RUN cd /opt/ && \
wget -q https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.07/gcc-arm-none-eabi-10.3-2021.07-x86_64-linux.tar.bz2 && \
echo "b56ae639d9183c340f065ae114a30202 gcc-arm-none-eabi-10.3-2021.07-x86_64-linux.tar.bz2" >> MD5SUM && \
md5sum -c MD5SUM && \
rm MD5SUM && \
tar -xf gcc-arm-none-eabi-10.3-2021.07-x86_64-linux.tar.bz2 && \
rm gcc-arm-none-eabi-10.3-2021.07-x86_64-linux.tar.bz2
ENV PATH $PATH:/opt/gcc-arm-none-eabi-10.3-2021.07/bin
# Installing DAPLink Python dependencies, CMake, and Ninja
COPY requirements.txt /home/
RUN python3 -m pip --no-cache-dir install -r /home/requirements.txt && \
python3 -m pip --no-cache-dir install cmake==3.22.0 ninja==1.10.2.3 && \
rm /home/requirements.txt
WORKDIR /home/