-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
58 lines (56 loc) · 1.67 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
47
48
49
50
51
52
53
54
55
56
57
58
# Build odr-dabmod
FROM ubuntu:22.04 AS builder
ARG URL_BASE=https://github.com/Opendigitalradio
ARG SOFTWARE=ODR-DabMod/archive/refs/tags
ARG VERSION=v2.6.0
ENV DEBIAN_FRONTEND=noninteractive
## Update system
RUN apt-get update \
&& apt-get upgrade --yes
## Install build packages
RUN apt-get install --yes \
autoconf \
curl \
make \
pkg-config
## Install development libraries and build
RUN apt-get install --yes \
libbladerf-dev \
libfftw3-dev \
liblimesuite-dev \
libsoapysdr-dev \
libuhd-dev \
libzmq3-dev \
&& cd /root \
&& curl -L ${URL_BASE}/${SOFTWARE}/${VERSION}.tar.gz | tar -xz \
&& cd ODR* \
&& ./bootstrap.sh \
&& ./configure --enable-limesdr --enable-bladerf --enable-fast-math --disable-native \
&& make \
&& make install
# Build the final image
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
## Update system
RUN apt-get update \
&& apt-get upgrade --yes
## Copy objects built in the builder phase
COPY --from=builder /usr/local/bin/* /usr/bin/
COPY start /usr/local/bin/
## Install production libraries
RUN chmod 0755 /usr/local/bin/start \
&& apt-get install --yes \
libbladerf2 \
libcurl4 \
libfftw3-3 \
liblimesuite20.10-1 \
libsoapysdr0.8 \
libuhd4.1.0 \
libzmq5 \
tzdata \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 9400
ENTRYPOINT ["start"]
LABEL org.opencontainers.image.vendor="Open Digital Radio"
LABEL org.opencontainers.image.description="DAB/DAB+ Modulator"
LABEL org.opencontainers.image.authors="[email protected]"