-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
79 lines (68 loc) · 1.89 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# BUILDER IMAGE
FROM jgoerzen/debian-base-minimal:bullseye AS builder
ARG build_branch=master
ENV DEBIAN_FRONTEND=noninteractive
## Update OS
RUN apt-get update ; \
apt-get upgrade --yes
## Install mmbtools
RUN apt-get install --yes git ;\
git clone \
--branch next \
https://github.com/opendigitalradio/dab-scripts.git \
/root/dab-scripts ;\
bash /root/dab-scripts/install/mmbtools-get \
--branch ${build_branch} \
--odr-user odr \
install
# FINAL IMAGE
FROM jgoerzen/debian-base-minimal:bullseye
ENV DEBIAN_FRONTEND=noninteractive
## Update OS
RUN apt-get update ;\
apt-get upgrade --yes
## Install production libraries
RUN apt-get install --yes \
gstreamer1.0-plugins-good \
libasound2 \
libmagickwand-6.q16-dev \
libcurl4 \
libgstreamer1.0 \
libgstreamer-plugins-base1.0 \
libjack0 \
libvlc5 vlc-plugin-base \
libzmq5 \
tzdata \
libboost-system1.74.0 \
libbladerf2 \
libfftw3-3 \
liblimesuite20.10-1 \
libsoapysdr0.7 \
libuhd3.15.0 \
python3-cherrypy3 \
python3-jinja2 \
python3-pysnmp4 \
python3-serial \
python3-zmq \
python3-yaml \
supervisor ;\
rm -rf /var/lib/apt/lists/*
## Add user odr
RUN useradd \
--create-home \
--groups dialout,audio \
odr
## Copy objects built in the builder phase
COPY --from=builder /usr/local/bin/* /usr/local/bin/
COPY --from=builder --chown=odr:odr /home/odr /home/odr
COPY --from=builder /etc/supervisor/supervisord.conf /etc/supervisor/supervisord.conf
## Link the sample supervisor configuration files
RUN ln -s /home/odr/config/supervisor/*.conf /etc/supervisor/conf.d/
## Expose ports
EXPOSE 8001-8003
EXPOSE 9001-9016
EXPOSE 9201
## Set image labels
LABEL org.opencontainers.image.vendor="Open Digital Radio"
LABEL org.opencontainers.image.description="mmbtools - Multi Media Broadcasting Tools"
LABEL org.opencontainers.image.authors="[email protected]"