1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-11-21 21:30:11 +00:00

fix distance so the output in in meters instead of nm

This commit is contained in:
kx1t 2024-05-23 18:14:28 -04:00 committed by Matthias Wirth
parent 67e548907d
commit 4ac8c1aa2f

View file

@ -2,11 +2,13 @@ FROM ghcr.io/sdr-enthusiasts/docker-baseimage:base AS build
RUN set -x && \
apt-get update -y && \
apt-get install -q -o Dpkg::Options::="--force-confnew" -y \
apt-get install -q -o Dpkg::Options::="--force-confnew" -y --no-install-recommends \
git gcc && \
cd / && \
git clone --depth=1 --single-branch https://github.com/sdr-enthusiasts/docker-vesselalert.git && \
cd /docker-vesselalert/src && \
# make the output in meters instead of nautical miles:
sed -i 's|/ 1852.0||g' distance.c && \
gcc -static distance.c -o distance -lm -Ofast
FROM ghcr.io/sdr-enthusiasts/docker-tar1090:latest