-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add TCP/UDP ports check in github actions
- Loading branch information
yngrtc
committed
Feb 18, 2024
1 parent
6fc0cdc
commit 185abaf
Showing
7 changed files
with
57 additions
and
37 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Use rust image as base | ||
FROM rust:latest AS builder | ||
|
||
# Set working directory inside the container | ||
WORKDIR /usr/src/app | ||
|
||
# Copy the Rust project files into the container | ||
COPY . . | ||
|
||
# Build the Rust project | ||
RUN cargo build --release --package sfu --example chat | ||
|
||
# Use a smaller base image for runtime | ||
FROM debian:buster-slim | ||
|
||
# Set working directory inside the container | ||
WORKDIR /usr/src/app | ||
|
||
# Copy the built executable from the builder stage | ||
COPY --from=builder /usr/src/app/target/release/examples/chat . | ||
|
||
# Expose the TCP port the signal server will listen on | ||
EXPOSE 8080 | ||
# Expose the UDP ports the media server will listen on | ||
EXPOSE 3478-3495/udp | ||
|
||
# Command to run the server | ||
CMD ["./chat -d --level info"] |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.