Removed reference to hardcoded git repository. Now copying in the git repository from the host, and building that.

pull/38/head
Bryan Klofas 2021-05-18 19:13:57 -07:00
rodzic 0535890ef6
commit a60426d05e
1 zmienionych plików z 7 dodań i 6 usunięć

Wyświetl plik

@ -1,12 +1,13 @@
# Can't use buster-slim because it needs librtlsdr-dev 0.5.3
# See https://github.com/dgiardini/rtl-ais/issues/32
FROM debian:stretch-slim
ENV VER=${VER:-master} \
REPO=https://github.com/dgiardini/rtl-ais.git \
APP=/usr/src/app \
GIT_SSL_NO_VERIFY=true
ENV APP=/usr/src/app
WORKDIR $APP
COPY . $APP
RUN apt-get update && apt-get install -y \
git \
rtl-sdr \
@ -15,8 +16,8 @@ make \
build-essential \
pkg-config \
libusb-1.0-0-dev \
&& git clone -b $VER $REPO $APP \
&& make
&& make \
&& rm -rf /var/lib/apt/lists/*
CMD $APP/rtl_ais -n