Update Dockerfile to use apt-get for package installation and improve ip_forward configuration

This commit is contained in:
Lukian 2025-01-21 10:11:22 +01:00
parent 82cabddb73
commit 16002551ea

View file

@ -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/"]