Compare commits

...

4 Commits

Author SHA1 Message Date
7e2a97bf0d Change example to interactive 2022-11-23 19:16:07 +01:00
6e1e63cad1 Add example command 2022-11-23 18:42:34 +01:00
637bb11fdd Switch to entrypoint 2022-11-23 18:41:59 +01:00
14e9f7ee35 Combine update and make 2022-11-23 18:41:36 +01:00
2 changed files with 12 additions and 6 deletions

View File

@ -16,6 +16,14 @@ Collection of Dockerfiles created to build & pack various tools.
## 1.1. Bandwhich
### 1.1.1. Source
>This is a CLI utility for displaying current network utilization by process, connection and remote IP/hostname
Source: https://github.com/imsnif/bandwhich
https://github.com/imsnif/bandwhich
<br>
### 1.1.2. Example
```
docker run -it --net host bandwhich -i eth0
```

View File

@ -10,10 +10,8 @@ WORKDIR /build
RUN apk add --no-cache make libc-dev build-base
# Copy sources
ADD .build/repository/ .
# Update dependencies
RUN cargo update
# Compile
RUN TARGET="release" make
# Update dependencies and Compile
RUN cargo update && TARGET="release" make
# ---- Release ----
@ -21,4 +19,4 @@ FROM base AS release
# Copy build-target
COPY --from=build /build/target/release/bandwhich .
CMD ["./bandwhich"]
ENTRYPOINT ["./bandwhich"]