Skip to content

Commit 3497267

Browse files
committed
fix CI
1 parent 876a396 commit 3497267

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/rust.yml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v4
15+
- run: sudo apt install libpcap-dev
1516
- name: Build
1617
run: cargo build --verbose
1718
- name: Run tests

Dockerfile

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM rust:latest AS builder
2+
3+
RUN apt-get update \
4+
&& apt-get install -y libpcap-dev \
5+
&& rm -rf /var/lib/apt/lists/*
6+
7+
WORKDIR /app
8+
9+
COPY . .
10+
11+
RUN cargo install --path .
12+
13+
FROM debian:stable-slim
14+
15+
RUN apt-get update \
16+
&& apt-get install -y libpcap-dev openssl \
17+
&& rm -rf /var/lib/apt/lists/*
18+
19+
COPY --from=builder /usr/local/cargo/bin/osiris /app/osiris
20+
21+
ENTRYPOINT [ "/app/osiris" ]
22+
CMD [ "--help" ]

0 commit comments

Comments
 (0)