Update Dockerfile (test6)

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

View file

@ -44,7 +44,6 @@ RUN apk add --no-cache --update \
nano \ nano \
netcat-openbsd \ netcat-openbsd \
nginx \ nginx \
openssh \
socat \ socat \
sqlite \ sqlite \
tcptraceroute \ tcptraceroute \
@ -60,10 +59,21 @@ RUN apk add --no-cache --update \
py3-dotenv \ py3-dotenv \
py3-cloudflare \ py3-cloudflare \
py3-virtualenv py3-virtualenv
# openssh \
# nginx-mod-stream \ # nginx-mod-stream \
SHELL ["/bin/bash", "-c"] SHELL ["/bin/bash", "-c"]
## Set up the SSH keys from an environment variable
#ENV AUTHORIZED_KEYS=""
#RUN echo "${AUTHORIZED_KEYS}" > /root/.ssh/authorized_keys && \
# chmod 600 /root/.ssh/authorized_keys
## Configure SSH daemon
#RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \
# sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config
# # Configure SSH server # # Configure SSH server
# RUN mkdir /var/run/sshd && \ # RUN mkdir /var/run/sshd && \
# echo 'root:rootpassword' | chpasswd && \ # echo 'root:rootpassword' | chpasswd && \