oulh commited on
Commit
16545a4
1 Parent(s): 044612f
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
  FROM ubuntu:20.04
2
  USER root
3
  WORKDIR /root/
4
- # EXPOSE 80
5
  COPY start.sh /root/start.sh
6
  # set password
7
  RUN echo "root:zxcvbnm" | chpasswd
@@ -25,7 +25,7 @@ tar -zxf ngrok-v3-stable-linux-amd64.tgz && \
25
  ./ngrok config add-authtoken 2Uym7MToTptND58tapCPscX7UyC_81x66N91ecUQBPyWNqHCC
26
 
27
  # RUN chmod +x /root/start.sh
28
-
29
  # CMD ["/bin/sh","/root/start.sh"]
30
- CMD /etc/init.d/ssh start > /dev/null 2>&1 && ./ngrok tcp 22 && echo "completed"
31
  # CMD ["/bin/bash","service ssh start && ./ngrok tcp 22"]
 
1
  FROM ubuntu:20.04
2
  USER root
3
  WORKDIR /root/
4
+ EXPOSE 22
5
  COPY start.sh /root/start.sh
6
  # set password
7
  RUN echo "root:zxcvbnm" | chpasswd
 
25
  ./ngrok config add-authtoken 2Uym7MToTptND58tapCPscX7UyC_81x66N91ecUQBPyWNqHCC
26
 
27
  # RUN chmod +x /root/start.sh
28
+ CMD /etc/init.d/ssh start && ./ngrok tcp 22
29
  # CMD ["/bin/sh","/root/start.sh"]
30
+ # CMD /etc/init.d/ssh start > /dev/null 2>&1 && ./ngrok tcp 22 && echo "completed"
31
  # CMD ["/bin/bash","service ssh start && ./ngrok tcp 22"]