From 74e1d611fc5788af435ddee23894c9357802e3a2 Mon Sep 17 00:00:00 2001 From: OnceUponATimeInAmerica <114700833+OnceUponATimeInAmerica@users.noreply.github.com> Date: Sat, 24 Aug 2024 20:38:43 +0330 Subject: [PATCH] Update Dockerfile (test5) --- Dockerfile | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f37d2e6e..b17d6130 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,11 +31,27 @@ RUN apk add --no-cache --update \ fail2ban \ bash \ bash-completion \ - cron \ + bc \ + supercronic \ curl \ - wget \ + gawk \ + git \ + htop \ + iptables \ + iperf3 \ iproute2 \ + jq \ + nano \ + netcat-openbsd \ nginx \ + openssh \ + socat \ + sqlite \ + tcptraceroute \ + tcpdump \ + tmux \ + unzip \ + wget \ python3 \ py3-pip \ py3-psutil \ @@ -44,9 +60,18 @@ RUN apk add --no-cache --update \ py3-dotenv \ py3-cloudflare \ py3-virtualenv - + # nginx-mod-stream \ + SHELL ["/bin/bash", "-c"] +# # Configure SSH server +# RUN mkdir /var/run/sshd && \ +# echo 'root:rootpassword' | chpasswd && \ +# sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \ +# sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config && \ +# ssh-keygen -A + + COPY --from=builder /app/build/ /app/ COPY --from=builder /app/DockerEntrypoint.sh /app/ COPY --from=builder /app/x-ui.sh /usr/bin/x-ui