-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdockerfile
45 lines (30 loc) · 1.15 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Base we build upon
FROM ubuntu:latest
# Download Linux support tools
#unzip, libgl1 and libglib2.0-0 are for commander support
RUN apt-get update && \
apt-get clean && \
apt-get install -y \
build-essential \
wget \
curl \
unzip \
libgl1 \
libglib2.0-0
# Set up a development tools directory
WORKDIR /home/dev
# Get and install Arm none eabi GCC compiler
RUN wget -qO- https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 | tar -xj
# Install Simplicity Commander (unfortunately no stable URL available, this
# is known to be working with Commander_linux_x86_64_1v15p0b1306.tar.bz).
RUN \
curl -O https://www.silabs.com/documents/login/software/SimplicityCommander-Linux.zip \
&& unzip SimplicityCommander-Linux.zip \
&& tar -C /opt -xjf SimplicityCommander-Linux/Commander_linux_x86_64_*.tar.bz \
&& rm -r SimplicityCommander-Linux \
&& rm SimplicityCommander-Linux.zip
ENV PATH="$PATH:/opt/commander"
# set environment path
ENV PATH $PATH:/home/dev/gcc-arm-none-eabi-10.3-2021.10/bin
# set working directory for our app
WORKDIR /home/app