-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.dockerfile
More file actions
48 lines (38 loc) · 1.58 KB
/
Copy pathdev.dockerfile
File metadata and controls
48 lines (38 loc) · 1.58 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM ubuntu:focal as iwd-builder
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y libdbus-1-dev build-essential
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y git automake
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libtool
RUN mkdir /build && cd /build && \
git config --global advice.detachedHead false && \
git clone --branch 1.14 --depth 1 git://git.kernel.org/pub/scm/network/wireless/iwd.git && \
git clone --branch 0.40 --depth 1 git://git.kernel.org/pub/scm/libs/ell/ell.git
WORKDIR /build/iwd
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libreadline-dev
RUN sed -i 's/etc\/iwd/data\/iwd\/etc/g' configure.ac && \
./bootstrap && \
./configure --prefix=/dist/usr \
--disable-manual-pages \
--disable-systemd-service \
--localstatedir=/data/iwd/state \
--with-dbus-datadir=/dist/usr/share && \
make && make install
FROM node:lts-alpine AS ui
RUN npm install -g @vue/cli && \
yarn global add @vue/cli-service-global
ENTRYPOINT []
FROM ubuntu:focal as service
RUN echo "resolvconf resolvconf/linkify-resolvconf boolean false" | debconf-set-selections && \
apt-get update && apt-get install --no-install-recommends -y \
wireguard iptables hostapd python3-pip iproute2 iputils-ping nmap iw unbound isc-dhcp-server curl udhcpc dbus resolvconf && \
mkdir -p /var/run/dbus
RUN pip install \
quart \
jinja2 \
toml \
ZODB \
pyyaml \
dbus-next \
aiohttp
COPY --from=iwd-builder /dist/ /
HEALTHCHECK --interval=90s CMD [ "curl", "-sL", "http://localhost:5000/api/ping" ]
ENTRYPOINT []