segfault/router/Dockerfile

40 lines
1.4 KiB
Docker
Raw Normal View History

2023-04-25 10:31:33 +00:00
# iptables 'nft' needs rolling.
# FROM ubuntu:rolling
2022-07-25 12:42:33 +00:00
FROM ubuntu:22.04
2022-08-09 22:09:50 +00:00
RUN apt-get update \
2022-12-06 16:03:56 +00:00
&& apt-get install -y --no-install-recommends \
2022-08-09 22:09:50 +00:00
ca-certificates \
2023-03-25 20:32:23 +00:00
conntrack \
2022-10-12 16:45:46 +00:00
curl \
2023-04-26 17:57:44 +00:00
dnsutils \
2022-10-12 16:45:46 +00:00
fping \
2022-08-09 22:09:50 +00:00
inetutils-ping \
iptables \
iproute2 \
iperf \
2023-04-26 17:57:44 +00:00
ipset \
2023-03-26 05:40:47 +00:00
jq \
2023-01-13 18:57:40 +00:00
lsb-release \
gnupg \
2022-10-12 16:45:46 +00:00
net-tools \
2023-04-25 10:31:33 +00:00
netcat-traditional \
2022-08-09 22:09:50 +00:00
tcpdump \
2023-01-05 19:03:25 +00:00
wireguard-tools \
2022-10-12 16:45:46 +00:00
wget \
2023-01-13 18:57:40 +00:00
vim
2023-04-25 10:31:33 +00:00
# RUN apt-get install -y --no-install-recommends \
# nftables
2023-01-13 18:57:40 +00:00
RUN bash -c '{ true \
2023-04-26 17:57:44 +00:00
&& echo "source /dev/shm/net-devs.txt 2>/dev/null" >>/root/.bashrc \
2023-01-13 18:57:40 +00:00
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null \
&& apt-get update \
&& apt-get install -y --no-install-recommends docker-ce-cli; }' \
2022-08-09 22:09:50 +00:00
&& rm -rf /var/lib/apt/lists/*
2022-07-25 12:42:33 +00:00
2023-04-25 10:31:33 +00:00
COPY user-limit.sh init.sh init-wg.sh init-novpn.sh fix-network.sh /
2022-07-25 12:42:33 +00:00
CMD ["bash", "-il"]