-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
19 lines (18 loc) · 854 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM rust:buster AS builder
RUN apt update && apt install llvm libclang-dev -y
COPY .git /opt/jamurust/.git/
COPY src /opt/jamurust/src/
COPY .gitignore .gitmodules build.rs Cargo.lock Cargo.toml wrapper.h /opt/jamurust/
WORKDIR /opt/jamurust/
RUN git submodule update --init
RUN cd opus && ./autogen.sh && ./configure --enable-static --disable-shared --enable-custom-modes --disable-hardening && make
RUN cargo build --target=x86_64-unknown-linux-gnu
FROM node:16-buster-slim
RUN apt-get update && apt-get install ffmpeg -y && rm -rf /var/lib/apt/lists/*
COPY contrib/radio/package.json contrib/radio/yarn.lock /opt/jam-radio/
WORKDIR /opt/jam-radio/
RUN yarn
COPY contrib/radio/ /opt/jam-radio/
COPY --from=builder /opt/jamurust/target/x86_64-unknown-linux-gnu/debug/jam-listener /usr/bin/jam-listener
ENV JAM_LISTENER=/usr/bin/jam-listener
CMD node .