„Dockerfile“ ändern

This commit is contained in:
2022-02-06 21:07:45 +01:00
parent 9e05728f33
commit 5e092cc4f1

View File

@@ -2,7 +2,7 @@ FROM ich777/debian-baseimage
LABEL maintainer="admin@minenet.at"
RUN apt-get update && \
apt-get -y install --no-install-recommends nano openssh-server wireguard wireguard-tools iproute2 && \
apt-get -y install --no-install-recommends nano openssh-server wireguard wireguard-tools iproute2 iptables && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /run/sshd && \
@@ -11,7 +11,8 @@ RUN mkdir -p /run/sshd && \
sed -i "/#PasswordAuthentication yes/c\PasswordAuthentication no" /etc/ssh/sshd_config && \
sed -i "/StrictHostKeyChecking/c\ StrictHostKeyChecking no" /etc/ssh/ssh_config && \
sed -i "/IdentityFile ~\/.ssh\/id_rsa/c\ IdentityFile \/root\/ssh\/ssh_host_rsa_key" /etc/ssh/ssh_config && \
sed -i "/PROGRAM must be run as root. Please enter the password for/c\ :" /usr/bin/wg-quick
sed -i "/PROGRAM must be run as root. Please enter the password for/c\ :" /usr/bin/wg-quick && \
sed -i "/cmd sysctl -q net.ipv4.conf.all.src_valid_mark=1/d" /usr/bin/wg-quick
ENV DATA_DIR="/root"
ENV HOST=""