-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
37 lines (25 loc) · 1.03 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
FROM debian:8.6 as builder
MAINTAINER Guy John <[email protected]>
RUN apt-get update
RUN apt-get install -y clang cmake make git
RUN apt-get install -y libfftw3-dev
RUN apt-get install -y libshout3-dev libconfig-dev libvorbis-dev libsndfile-dev
ENV CC /usr/bin/clang
RUN git clone https://github.com/rumblesan/bclib.git /opt/bclib
RUN cd /opt/bclib/build && cmake .. && make && make install
RUN git clone https://github.com/rumblesan/libpstretch.git /opt/libpstretch
RUN cd /opt/libpstretch/build && cmake .. && make && make install
RUN mkdir -p /opt/slowradio/build
COPY CMakeLists.txt /opt/slowradio
COPY lib /opt/slowradio/lib
COPY main /opt/slowradio/main
COPY tests /opt/slowradio/tests
WORKDIR /opt/slowradio
RUN cd build; cmake ..; make
FROM debian:jessie-slim
RUN apt-get update
RUN apt-get install -y libfftw3-3 libshout3 libconfig9 libvorbis-dev libsndfile1
RUN mkdir -p /opt/slowradio
WORKDIR /opt/slowradio
COPY --from=builder /opt/slowradio/build/main/slowradio /usr/local/bin/
CMD ["slowradio", "/opt/slowradio/radio.cfg"]