mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2024-11-21 13:20:11 +00:00
fix distance so the output in in meters instead of nm
This commit is contained in:
parent
67e548907d
commit
4ac8c1aa2f
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue