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 \
netcat-openbsd \
nginx \
openssh \
socat \
sqlite \
tcptraceroute \
@ -60,10 +59,21 @@ RUN apk add --no-cache --update \
py3-dotenv \
py3-cloudflare \
py3-virtualenv
# openssh \
# nginx-mod-stream \
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
# RUN mkdir /var/run/sshd && \
# echo 'root:rootpassword' | chpasswd && \