-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
24 lines (18 loc) · 928 Bytes
/
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
# Base GCC image for compiling (CMAKE) firmata code
FROM gcc:9.3.0
COPY ./src /usr/src/firmata
COPY ./.git /usr/src/firmata/.git
# Defining working directory
WORKDIR /usr/src/firmata
ADD https://github.com/Kitware/CMake/releases/download/v3.16.6/cmake-3.16.6-Linux-x86_64.sh /tmp/cmake-install.sh
RUN chmod u+x /tmp/cmake-install.sh \
&& mkdir /usr/bin/cmake \
&& /tmp/cmake-install.sh --skip-license --prefix=/usr/bin/cmake \
&& rm /tmp/cmake-install.sh
ENV PATH="/usr/bin/cmake/bin:${PATH}"
ADD https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 /usr/bin/gcc-arm-none-eabi-9-2019-q4-major.tar.bz
RUN tar -xjf /usr/bin/gcc-arm-none-eabi-9-2019-q4-major.tar.bz -C /usr/bin \
&& rm /usr/bin/gcc-arm-none-eabi-9-2019-q4-major.tar.bz
ENV PATH "/usr/bin/gcc-arm-none-eabi-9-2019-q4-major/bin:$PATH"
ENV OUTDIR=/out/builds
CMD ["make","all"]