forked from rpatel3001/docker-acars2pos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (28 loc) · 1.02 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
FROM ghcr.io/sdr-enthusiasts/docker-baseimage:python
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# hadolint ignore=DL3008,SC2086,DL4006,SC2039
RUN set -x && \
TEMP_PACKAGES=() && \
KEPT_PACKAGES=() && \
# temp
TEMP_PACKAGES+=() && \
# keep
KEPT_PACKAGES+=(python3-prctl) && \
KEPT_PACKAGES+=(python3-bs4) && \
KEPT_PACKAGES+=(python3-colorama) && \
KEPT_PACKAGES+=(python3-requests) && \
KEPT_PACKAGES+=(unzip) && \
apt-get update && \
apt-get install -y --no-install-recommends \
"${KEPT_PACKAGES[@]}" \
"${TEMP_PACKAGES[@]}" \
&& \
pip install --break-system-packages icao_nnumber_converter_us haversine && \
curl --location --output /tmp/BaseStation.zip https://github.com/rikgale/VRSData/raw/main/BaseStation.zip && \
mkdir -p /opt/basestation && \
unzip /tmp/BaseStation.zip -d /opt/basestation/ && \
# Clean up
apt-get remove -y "${TEMP_PACKAGES[@]}" && \
apt-get autoremove -y && \
rm -rf /src/* /tmp/* /var/lib/apt/lists/*
COPY rootfs /