rebiuld
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -25,18 +25,18 @@ RUN sudo apt update && sudo apt install openssh-server nginx -y
|
|
25 |
|
26 |
# UN curl -fsSL https://raw.githubusercontent.com/cdr/code-server/main/install.sh | sh
|
27 |
|
28 |
-
RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
|
29 |
# RUN mkdir -p /run/sshd
|
30 |
#ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa -N ''
|
31 |
# COPY ./id_rsa* ~/.ssh/
|
32 |
# echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config
|
33 |
ADD --chown=leo https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz ./
|
34 |
|
35 |
-
RUN tar -zxf ngrok-v3-stable-linux-amd64.tgz && \
|
36 |
-
./ngrok config add-authtoken 2Uym7MToTptND58tapCPscX7UyC_81x66N91ecUQBPyWNqHCC
|
37 |
# RUN mkdir -p /run/sshd
|
38 |
# RUN chmod +x /root/start.sh
|
39 |
-
CMD service nginx start && /etc/init.d/ssh start && ./ngrok tcp 22
|
40 |
# CMD ["/bin/sh","/root/start.sh"]
|
41 |
# CMD /etc/init.d/ssh start > /dev/null 2>&1 && ./ngrok tcp 22 && echo "completed"
|
42 |
# CMD ["/bin/bash","service ssh start && ./ngrok tcp 22"]
|
|
|
25 |
|
26 |
# UN curl -fsSL https://raw.githubusercontent.com/cdr/code-server/main/install.sh | sh
|
27 |
|
28 |
+
RUN sudo echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
|
29 |
# RUN mkdir -p /run/sshd
|
30 |
#ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa -N ''
|
31 |
# COPY ./id_rsa* ~/.ssh/
|
32 |
# echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config
|
33 |
ADD --chown=leo https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz ./
|
34 |
|
35 |
+
RUN sudo tar -zxf ngrok-v3-stable-linux-amd64.tgz && \
|
36 |
+
sudo ./ngrok config add-authtoken 2Uym7MToTptND58tapCPscX7UyC_81x66N91ecUQBPyWNqHCC
|
37 |
# RUN mkdir -p /run/sshd
|
38 |
# RUN chmod +x /root/start.sh
|
39 |
+
CMD sudo service nginx start && sudo /etc/init.d/ssh start && sudo ./ngrok tcp 22
|
40 |
# CMD ["/bin/sh","/root/start.sh"]
|
41 |
# CMD /etc/init.d/ssh start > /dev/null 2>&1 && ./ngrok tcp 22 && echo "completed"
|
42 |
# CMD ["/bin/bash","service ssh start && ./ngrok tcp 22"]
|