Update Dockerfile (test5)

This commit is contained in:
OnceUponATimeInAmerica 2024-08-24 20:38:43 +03:30 committed by GitHub
parent 83b28d9b9d
commit 74e1d611fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,11 +31,27 @@ RUN apk add --no-cache --update \
fail2ban \ fail2ban \
bash \ bash \
bash-completion \ bash-completion \
cron \ bc \
supercronic \
curl \ curl \
wget \ gawk \
git \
htop \
iptables \
iperf3 \
iproute2 \ iproute2 \
jq \
nano \
netcat-openbsd \
nginx \ nginx \
openssh \
socat \
sqlite \
tcptraceroute \
tcpdump \
tmux \
unzip \
wget \
python3 \ python3 \
py3-pip \ py3-pip \
py3-psutil \ py3-psutil \
@ -44,9 +60,18 @@ RUN apk add --no-cache --update \
py3-dotenv \ py3-dotenv \
py3-cloudflare \ py3-cloudflare \
py3-virtualenv py3-virtualenv
# nginx-mod-stream \
SHELL ["/bin/bash", "-c"] 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/build/ /app/
COPY --from=builder /app/DockerEntrypoint.sh /app/ COPY --from=builder /app/DockerEntrypoint.sh /app/
COPY --from=builder /app/x-ui.sh /usr/bin/x-ui COPY --from=builder /app/x-ui.sh /usr/bin/x-ui