generated from security-union/yew-actix-template
-
Notifications
You must be signed in to change notification settings - Fork 117
/
Dockerfile.video-daemon
33 lines (23 loc) · 780 Bytes
/
Dockerfile.video-daemon
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
FROM securityunion/rustlemania-api-base:1.72-slim as build
# Install dependencies
RUN apt-get install -y libssl-dev pkg-config libvpx-dev build-essential libglib2.0-dev libgtk-3-dev libsoup2.4 libjavascriptcoregtk-4.0-dev libclang-dev clang libwebkit2gtk-4.0-dev
# Copy source code
WORKDIR /app
COPY . .
ENV LOGIN_URL ""
ENV ACTIX_UI_BACKEND_URL ""
ENV WEBTRANSPORT_HOST ""
# Build
RUN rustup default nightly-2023-12-13
RUN cargo build --release
FROM debian:bookworm-slim
ENV RUST_LOG=info
ENV RUST_BACKTRACE=0
ENV QUIC_HOST=https://transport.rustlemania.com
ENV MEETING_ID=1234
ENV USER_ID=1234
RUN apt-get update && \
apt-get install -y pkg-config libvpx-dev && \
apt-get clean
COPY --from=build /app/target/release/video-daemon /usr/bin/
CMD ["video-daemon"]