-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.Dockerfile
42 lines (36 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM debian:stable
ENV HOME=/root
# Install packages needed for next steps and upgrade system
RUN \
apt-get update && \
apt-get -y upgrade && \
apt-get -y install --no-install-recommends \
lua5.1 liblua5.1-0-dev libjson-c-dev ca-certificates \
git cmake make pkg-config gcc \
&& \
apt-get clean
# Compile libubox
RUN \
git clone git://git.openwrt.org/project/libubox.git ~/libubox && \
cd ~/libubox && \
cmake CMakeLists.txt && \
make install && \
cd .. && \
rm -rf libubox
# Compile uci
RUN \
git clone git://git.openwrt.org/project/uci.git ~/uci && \
cd ~/uci && \
cmake CMakeLists.txt && \
make install && \
cd .. && \
rm -rf uci
# Install packages needed for PyUci
RUN \
apt-get update && \
apt-get -y install --no-install-recommends \
python3-dev python3-setuptools python3-pip python3-pytest \
python3-pytest-cov lcov \
&& \
apt-get clean
CMD [ "bash" ]