-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
40 lines (28 loc) · 1.02 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
FROM ubuntu:latest
MAINTAINER Zachary McGibbon https://github.com/mzac
# Update package cache, install packages, clean cache
RUN apt update \
&& apt -y upgrade \
&& apt install -y bash git cmake libusb-1.0-0-dev build-essential lame libmp3lame-dev libvorbis-dev libshout3-dev ezstream \
&& apt clean
# Create directory for rtl-sdr code
RUN mkdir -p /opt/rtl-sdr
# Not sure if this is really needed
RUN mkdir -p /etc/modprobe.d
RUN echo 'blacklist dvb_usb_rtl28xxu' > /etc/modprobe.d/raspi-blacklist.conf
RUN git clone https://github.com/keenerd/rtl-sdr /opt/rtl-sdr
RUN mkdir -p /opt/rtl-sdr/build
WORKDIR /opt/rtl-sdr/build
# Build rtl-sdr code
RUN cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON
RUN make
RUN make install
RUN ldconfig
# Copy ezstream_bcfy.xml config
ADD ezstream_bcfy.xml /etc/ezstream_bcfy.xml
# Create run scrip dir and copy run.sh
RUN mkdir /opt/broadcastify
ADD run.sh /opt/broadcastify
RUN chmod +x /opt/broadcastify/run.sh
WORKDIR /opt/broadcastify
CMD ["/opt/broadcastify/run.sh"]