-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
99 lines (94 loc) · 2.67 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
FROM ghcr.io/sdr-enthusiasts/docker-baseimage:base
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# hadolint ignore=DL3008,DL3003,SC1091
RUN set -x && \
#
KEPT_PACKAGES=() && \
KEPT_PACKAGES+=(nginx-light) && \
KEPT_PACKAGES+=(libusb-1.0.0) && \
apt-get update -y && \
apt-get install --no-install-recommends -y \
${KEPT_PACKAGES[@]} \
&& \
#
# Download airspy_adsb arm binary
curl \
--location \
--output /tmp/airspy_adsb-linux-arm.tgz \
"https://github.com/wiedehopf/airspy-conf/raw/master/bookworm/airspy_adsb-linux-arm.tgz" \
&& \
tar \
xvf /tmp/airspy_adsb-linux-arm.tgz \
-C /tmp \
&& \
mv -v /tmp/airspy_adsb /usr/local/bin/airspy_adsb.arm && \
#
# Download airspy_adsb arm64 binary
curl \
--location \
--output /tmp/airspy_adsb-linux-arm64.tgz \
"https://github.com/wiedehopf/airspy-conf/raw/master/bookworm/airspy_adsb-linux-arm64.tgz" \
&& \
tar \
xvf /tmp/airspy_adsb-linux-arm64.tgz \
-C /tmp \
&& \
mv -v /tmp/airspy_adsb /usr/local/bin/airspy_adsb.arm64 && \
#
# Download airspy_adsb armv7 binary
curl \
--location \
--output /tmp/airspy_adsb-linux-armv7.tgz \
"https://github.com/wiedehopf/airspy-conf/raw/master/bookworm/airspy_adsb-linux-armv7.tgz" \
&& \
tar \
xvf /tmp/airspy_adsb-linux-armv7.tgz \
-C /tmp \
&& \
mv -v /tmp/airspy_adsb /usr/local/bin/airspy_adsb.armv7 && \
#
# Download airspy_adsb i386 binary
curl \
--location \
--output /tmp/airspy_adsb-linux-i386.tgz \
"https://github.com/wiedehopf/airspy-conf/raw/master/bookworm/airspy_adsb-linux-i386.tgz" \
&& \
tar \
xvf /tmp/airspy_adsb-linux-i386.tgz \
-C /tmp \
&& \
mv -v /tmp/airspy_adsb /usr/local/bin/airspy_adsb.i386 && \
#
# Download airspy_adsb nehalem binary
curl \
--location \
--output /tmp/airspy_adsb-linux-nehalem.tgz \
"https://github.com/wiedehopf/airspy-conf/raw/master/bookworm/airspy_adsb-linux-nehalem.tgz" \
&& \
tar \
xvf /tmp/airspy_adsb-linux-nehalem.tgz \
-C /tmp \
&& \
mv -v /tmp/airspy_adsb /usr/local/bin/airspy_adsb.nehalem && \
#
# Download airspy_adsb x86_64 binary
curl \
--location \
--output /tmp/airspy_adsb-linux-x86_64.tgz \
"https://github.com/wiedehopf/airspy-conf/raw/master/bookworm/airspy_adsb-linux-x86_64.tgz" \
&& \
tar \
xvf /tmp/airspy_adsb-linux-x86_64.tgz \
-C /tmp \
&& \
mv -v /tmp/airspy_adsb /usr/local/bin/airspy_adsb.x86_64 && \
#
# Ensure all binaries are executable
chmod -v a+x /usr/local/bin/airspy_adsb.* && \
#
# Clean-up
apt-get -v clean && \
rm -rfv /tmp/* /var/lib/apt/lists/*
COPY rootfs/ /
EXPOSE 30005
HEALTHCHECK --interval=60s --timeout=60s --start-period=30s --retries=3 CMD [ "/scripts/healthcheck.sh" ]