-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathDockerfile
49 lines (40 loc) · 1.15 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
FROM debian:latest AS builder
RUN apt update && \
apt install -y \
build-essential \
debhelper \
fakeroot \
git \
libbladerf-dev \
libhackrf-dev \
liblimesuite-dev \
libncurses-dev \
librtlsdr-dev \
libsoapysdr-dev \
pkg-config && \
rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/flightaware/dump1090.git /dump1090
WORKDIR /dump1090
RUN git checkout v9.0
RUN make
FROM debian:latest
RUN apt update && \
apt install -y \
libbladerf2 \
libhackrf0 \
liblimesuite22.09-1 \
libncurses6 \
librtlsdr0 \
libsoapysdr0.8 \
nginx && \
rm -rf /var/lib/apt/lists/*
COPY --from=builder /dump1090/dump1090 /usr/bin/dump1090
COPY --from=builder /dump1090/public_html/ /dump1090/public_html/
# fixes https://github.com/jeanralphaviles/dump1090-docker/issues/2
RUN echo '{"type": "dump1090-docker"}' > /dump1090/public_html/status.json && \
echo '{"rings": []}' > /dump1090/public_html/upintheair.json
COPY nginx.conf /nginx.conf
COPY mime.types /mime.types
COPY run.sh /run.sh
EXPOSE 8080 30001 30002 30003 30004 30005 30104
ENTRYPOINT ["/run.sh"]