-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathContainerfile
More file actions
33 lines (31 loc) · 1.14 KB
/
Containerfile
File metadata and controls
33 lines (31 loc) · 1.14 KB
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
FROM python:3.11.7
RUN apt-get update \
&& apt-get install -y \
cmake \
liblua5.1-0-dev \
lua5.1 \
libjson-c-dev
RUN mkdir /tmp/requirements \
&& git clone git://git.openwrt.org/project/libubox.git /tmp/requirements/libubox \
&& cd /tmp/requirements/libubox \
&& git checkout eb9bcb64185ac155c02cc1a604692c4b00368324 \
&& cmake CMakeLists.txt \
&& make install \
&& git clone git://git.openwrt.org/project/ubus.git /tmp/requirements/ubus \
&& cd /tmp/requirements/ubus \
&& git checkout afa57cce0aff82f4a7a0e509d4387ebc23dd3be7 \
&& cmake CMakeLists.txt \
&& make install \
&& git clone git://git.openwrt.org/project/uci.git /tmp/requirements/uci \
&& cd /tmp/requirements/uci \
&& git checkout 16ff0badbde7e17ec3bd1f827ffe45922956cf86 \
&& cmake CMakeLists.txt \
&& make install \
&& rm -rf /tmp/requirements \
&& echo "/usr/local/lib" >> /etc/ld.so.conf.d/local.conf \
&& ldconfig
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt \
&& rm /tmp/requirements.txt
WORKDIR /app
CMD ["python3", "-m", "pytest"]