Initial commit
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
22
5g-uulm-network-monitoring/Dockerfile
Normal file
22
5g-uulm-network-monitoring/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
# Build Stage
|
||||
FROM rust:1.74 as builder
|
||||
WORKDIR /usr/src/5G_VideoProbe
|
||||
COPY src src
|
||||
COPY Cargo.* .
|
||||
RUN cargo install -F rtt --path .
|
||||
|
||||
# Runtime Stage
|
||||
FROM debian:stable-slim as runtime
|
||||
RUN apt-get update && apt-get install -y \
|
||||
tshark \
|
||||
gpsd \
|
||||
iputils-ping \
|
||||
ffmpeg \
|
||||
tcpdump \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY Rocket.toml /etc/videoprobe/Rocket.toml
|
||||
COPY run.sh /run.sh
|
||||
|
||||
COPY --from=builder /usr/local/cargo/bin/videoprobe /usr/local/bin/videoprobe
|
||||
|
||||
CMD [ "/run.sh" ]
|
||||
Reference in New Issue
Block a user