File tree 2 files changed +18
-2
lines changed
2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ Next-Generation [HEP](https://github.com/sipcapture/hep) Capture Agent in Rust
15
15
#### Build
16
16
* Run ` cargo build --release `
17
17
18
+ #### Docker Build
19
+ * Dynamic
20
+ ` docker build -t sipcapture/hepagent -f docker/Dockerfile . `
21
+ * Static _ (work in progress)_
22
+ ` docker build -t sipcapture/hepagent-static -f docker/Dockerfile-static . `
23
+
18
24
---------
19
25
20
26
#### Developers
Original file line number Diff line number Diff line change 1
1
FROM ekidd/rust-musl-builder:latest AS builder
2
2
WORKDIR /home/rust/src
3
3
ADD --chown=rust:rust . ./
4
- RUN sudo apt update && sudo apt install -y libluajit-5.1-dev libpcap-dev \
5
- && cargo build --release
4
+
5
+ RUN sudo apt update && sudo apt install -y flex bison
6
+
7
+ RUN LIBPCAP_VERSION=1.8.1 && \
8
+ cd /home/rust/libs && \
9
+ curl -LO http://www.tcpdump.org/release/libpcap-${LIBPCAP_VERSION}.tar.gz && \
10
+ tar xzvf libpcap-${LIBPCAP_VERSION}.tar.gz && cd libpcap-${LIBPCAP_VERSION} && \
11
+ CC='musl-gcc -static -fPIC' LD=musl-ld ./configure --disable-shared && \
12
+ make -j4 && sudo make install && \
13
+ cd .. && rm -rf libpcap-${LIBPCAP_VERSION}*
14
+
15
+ RUN cargo build --release
6
16
7
17
8
18
FROM alpine:latest
You can’t perform that action at this time.
0 commit comments