This repository was archived by the owner on May 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
60 lines (46 loc) · 1.51 KB
/
Dockerfile
File metadata and controls
60 lines (46 loc) · 1.51 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
49
50
51
52
53
54
55
56
57
58
59
60
# Builder
FROM flighttrackr/soapysdr-rtlsdr:alpine3.13 AS builder
# Packages
RUN apk add --no-cache build-base cmake git librtlsdr-dev boost-dev
# Workdir
WORKDIR /usr/src/builder
# Checkout dump978
RUN git clone -b master https://github.com/flightaware/dump978.git . && \
git -c advice.detachedHead=false checkout c1e37f4acd7e47c46ca312a4016128aecfd03630
# Compile dump978
RUN make -j 2 dump978-fa
# Release
FROM flighttrackr/soapysdr-rtlsdr:alpine3.13 AS release
LABEL maintainer="Dennis Neufeld <[email protected]>" \
org.opencontainers.image.authors="Dennis Neufeld <[email protected]>" \
org.opencontainers.image.url="https://github.com/Dennis14e/docker-flighttracker" \
org.opencontainers.image.source="https://github.com/Dennis14e/docker-flighttracker" \
org.opencontainers.image.licenses="MIT"
# Packages
RUN apk add --no-cache bash librtlsdr boost-system boost-program_options boost-regex boost-filesystem
# Workdir
WORKDIR /app
# Copy files
COPY --from=builder /usr/src/builder/dump978-fa /app/dump978
COPY entrypoint.sh /entrypoint.sh
# Permissions
RUN chmod +x /entrypoint.sh /app/dump978
# Environment
ENV SDR_DRIVER="rtlsdr" \
SDR_AUTO_GAIN="no" \
SDR_GAIN="" \
SDR_PPM="" \
SDR_ANTENNA="" \
SDR_STREAM_SETTINGS="" \
SDR_DEVICE_SETTINGS="" \
STRATUXV3="" \
FORMAT="CS8" \
RAW_STDOUT="no" \
JSON_STDOUT="no" \
RAW_PORT="30002" \
JSON_PORT="" \
CUSTOM=""
# Entrypoint
ENTRYPOINT [ "/entrypoint.sh" ]
# Command
CMD [ "sh", "-c", "/app/dump978" ]