-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (27 loc) · 874 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
25
26
27
28
29
30
31
32
33
34
35
36
FROM ubuntu:xenial-20210114
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get -yq dist-upgrade \
&& apt-get install -yq --no-install-recommends \
wget \
cmake protobuf-compiler \
build-essential \
ca-certificates \
gcc \
git \
libpq-dev \
make \
python-pip \
python2.7 \
python2.7-dev \
&& apt-get autoremove \
&& apt-get clean
RUN mkdir -p /app-gcc
RUN wget -q https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2 \
&& tar -xf gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2 -C /app-gcc --strip-components=1 \
&& rm gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2
ENV PATH="/app-gcc/bin:${PATH}"
RUN apt install -y rsync
WORKDIR /app
COPY . ./
RUN python build.py
CMD ["/bin/bash", "/data/build.sh"]