mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-03-03 22:53:00 +00:00
Update Dockerfile (test6)
This commit is contained in:
parent
74e1d611fc
commit
4235f3691b
1 changed files with 11 additions and 1 deletions
12
Dockerfile
12
Dockerfile
|
|
@ -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 && \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue