-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
74 lines (60 loc) · 1.43 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
FROM rust:1-buster
MAINTAINER [email protected]
RUN apt update
RUN apt install -y \
libusb-1.0.0 \
libusb-1.0.0-dev \
libsndfile1 \
libsndfile1-dev \
clang \
libclang-dev \
cmake
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt install -y nodejs
ENV HOME /root/rw
RUN mkdir -p ${HOME}/lib
WORKDIR $HOME
COPY lib/c lib/c
RUN mkdir -p lib/c/librtlsdr/build
WORKDIR ${HOME}/lib/c/librtlsdr/build
RUN cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON
RUN make
RUN make install
WORKDIR ${HOME}/lib/c/liquid-dsp
RUN chmod +x bootstrap.sh
RUN ./bootstrap.sh && ./configure
RUN make
RUN make install
RUN ldconfig || true
RUN mkdir -p ${HOME}/lib/c/itpp/build
WORKDIR ${HOME}/lib/c/itpp/build
RUN cmake ../
RUN make -j`nproc`
RUN make install
RUN mkdir -p ${HOME}/lib/c/mbelib/build
WORKDIR ${HOME}/lib/c/mbelib/build
RUN cmake ../
RUN make
RUN make install
RUN mkdir -p ${HOME}/lib/c/dsd/build
WORKDIR ${HOME}/lib/c/dsd/build
RUN cmake ../
RUN make
RUN make install
WORKDIR $HOME
COPY lib/rs lib/rs
WORKDIR ${HOME}/lib/rs/rtl_rs
RUN rustup override add nightly
RUN cargo build --release
RUN cargo install --force --path .
WORKDIR ${HOME}/lib/rs/rtl_p25
RUN cargo build --target-dir liquid_dsp_rs
RUN rustup override add nightly
RUN cargo build --release
RUN cargo install --force --path .
WORKDIR $HOME
COPY lib/js lib/js
COPY bin bin
RUN chmod +x bin/*
RUN bin/entry.sh npmall
ENTRYPOINT ["bin/entry.sh"]