kopia lustrzana https://github.com/dgiardini/rtl-ais
Removed reference to hardcoded git repository. Now copying in the git repository from the host, and building that.
rodzic
0535890ef6
commit
a60426d05e
13
Dockerfile
13
Dockerfile
|
@ -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
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue