generated from security-union/yew-actix-template
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e28c516
commit 568f002
Showing
40 changed files
with
3,850 additions
and
3,128 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
[workspace] | ||
|
||
resolver = "2" | ||
members = [ | ||
"actix-api", | ||
"bot", | ||
"src-tauri", | ||
"types", | ||
"videocall-client", | ||
"video-daemon", | ||
] | ||
exclude = [ | ||
"src-tauri", | ||
"yew-ui" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
FROM debian:bookworm-slim as build | ||
|
||
# Install rust | ||
RUN apt-get update && apt-get install -y curl | ||
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
# 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-10-05 | ||
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"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.