forked from sonydevworld/spresense
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (20 loc) · 747 Bytes
/
Copy pathDockerfile
File metadata and controls
22 lines (20 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM phusion/baseimage:0.11
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
ARG GIT_REV
ENV SPRESENSE_GIT_REV $GIT_REV
RUN apt-get update
RUN apt-get install -y wget clang-format vim-common bzip2 make cmake --install-recommends
RUN wget https://raw.githubusercontent.com/sonydevworld/spresense/master/install-tools.sh
RUN mkdir -p /spresenseenv/usr
RUN bash -c 'echo "#!/bin/bash" > /usr/bin/sudo'
RUN bash -c 'echo "\$@" >> /usr/bin/sudo'
RUN chmod +x /usr/bin/sudo
ENV HOME /
RUN mkdir -p $HOME/spresenseenv/usr
RUN bash ./install-tools.sh
ENV PATH "$PATH:/$HOME/spresenseenv/usr/bin"
RUN ldconfig
RUN rm -v /*.tgz /*tar.bz2 /*.tgz.sha
# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*