-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (38 loc) · 922 Bytes
/
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
# Builder
FROM alpine:3.21.0 AS builder
# Workdir
WORKDIR /app
# Copy downloader
COPY dl-fr24feed.sh /tmp/dl-fr24feed.sh
# Download fr24feed
RUN chmod +x /tmp/dl-fr24feed.sh && \
/tmp/dl-fr24feed.sh
# Release
FROM alpine:3.21.0 AS release
# Packages
RUN apk add --no-cache bash sed libstdc++
# Workdir
WORKDIR /usr/lib/fr24
# Copy files
COPY --from=builder /app /usr/lib/fr24
COPY entrypoint.sh /entrypoint.sh
COPY fr24feed.ini /etc/fr24feed.ini
RUN chmod +x /entrypoint.sh /usr/lib/fr24/fr24feed
RUN chmod 644 /etc/fr24feed.ini
# ENV
ENV SHARING_KEY="" \
DUMP1090_HOST="dump1090:30002" \
RECEIVER="avr-tcp" \
BS="no" \
RAW="no" \
LOGMODE="0" \
WINDOWMODE="0" \
MPX="no" \
MLAT="yes" \
MLAT_WITHOUT_GPS="yes"
# Expose
EXPOSE 8754
# Entrypoint
ENTRYPOINT [ "/entrypoint.sh" ]
# Command
CMD [ "/usr/lib/fr24/fr24feed" ]