forked from keenerd/rtl-sdr-misc
-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathDockerfile
47 lines (35 loc) · 1.15 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -------------------
# The build container
# -------------------
FROM debian:bookworm-slim AS build
WORKDIR /usr/src/app
COPY . /usr/src/app
# Upgrade bookworm and install dependencies
RUN apt-get -y update && apt -y upgrade && apt-get -y install --no-install-recommends \
rtl-sdr \
librtlsdr-dev \
libusb-1.0-0-dev \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Build rtl_ais
RUN make && \
make install
# -------------------------
# The application container
# -------------------------
FROM debian:bookworm-slim
LABEL org.opencontainers.image.title="rtl-ais"
LABEL org.opencontainers.image.description="AIS decoding using RTL-SDR dongle"
LABEL org.opencontainers.image.authors="Bryan Klofas KF6ZEO bklofas@gmail"
LABEL org.opencontainers.image.source="https://github.com/bklofas/rtl-ais"
# Upgrade bookworm and install dependencies
RUN apt-get -y update && apt -y upgrade && apt-get -y install --no-install-recommends \
tini \
rtl-sdr \
librtlsdr-dev \
libusb-1.0-0-dev &&\
rm -rf /var/lib/apt/lists/*
COPY --from=build /usr/src/app /
# Use tini as init.
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["/rtl_ais", "-n"]