forked from jvde-github/AIS-catcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (19 loc) · 830 Bytes
/
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
# -------------------
# The build container
# -------------------
FROM debian:bullseye-slim AS build
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install git make gcc g++ cmake pkg-config -y
RUN apt-get install librtlsdr-dev libairspy-dev libhackrf-dev libairspyhf-dev libzmq3-dev libsoxr-dev libcurl4-openssl-dev zlib1g-dev libpq-dev -y
COPY . /root/AIS-catcher
RUN cd /root/AIS-catcher; mkdir build; cd build; cmake ..; make; make install
# -------------------------
# The application container
# -------------------------
FROM debian:bullseye-slim
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install librtlsdr0 libairspy0 libhackrf0 libairspyhf1 libzmq5 libsoxr0 libcurl4 libpq-dev -y
COPY --from=build /usr/local/bin/AIS-catcher /usr/local/bin/AIS-catcher
ENTRYPOINT ["/usr/local/bin/AIS-catcher"]