Update Dockerfile to use apt-get for package installation and improve ip_forward configuration
This commit is contained in:
parent
82cabddb73
commit
16002551ea
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
FROM debian:stable-slim
|
FROM debian:stable-slim
|
||||||
RUN apk add --no-cache curl iputils-ping dsniff
|
RUN apt-get update && apt-get install -y dsniff \
|
||||||
RUN echo 1 | tee /proc/sys/net/ipv4/ip_forward
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
|
&& echo 1 >> /proc/sys/net/ipv4/ip_forward
|
||||||
CMD ["curl", "--insecure", "https://webserver/"]
|
CMD ["curl", "--insecure", "https://webserver/"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue