forked from openmiko/openmiko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
55 lines (43 loc) · 1.12 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
45
46
47
48
49
50
51
52
53
54
55
FROM ubuntu:16.04
RUN \
apt update && apt upgrade -y && \
apt install -y \
build-essential \
git \
autoconf \
cmake \
python \
unzip \
cpio \
wget \
vim \
locales \
lzop \
bc \
nano \
libncurses5-dev \
nfs-kernel-server \
tftpd-hpa \
curl \
python3 \
python-lzma
RUN locale-gen --no-purge en_US.UTF-8
RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
RUN python get-pip.py
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
RUN pip install click
ENV NVM_DIR /root/.nvm
RUN . $NVM_DIR/nvm.sh && nvm install 16
RUN . $NVM_DIR/nvm.sh && npm config set user 0
RUN . $NVM_DIR/nvm.sh && npm config set unsafe-perm true
RUN mkdir -p /openmiko/build
WORKDIR "/openmiko/build"
RUN wget https://buildroot.org/downloads/buildroot-2016.02.tar.gz;
RUN tar xvf buildroot-2016.02.tar.gz;
RUN rm buildroot-2016.02.tar.gz;
# Change to the buildroot directory
WORKDIR "/openmiko/build/buildroot-2016.02"
# Copy the entire source tree. Expect it to be mounted over when developing.
COPY . /src
RUN /src/buildscripts/setup_buildroot.sh
WORKDIR /openmiko