Rifd commited on
Commit
7d94da3
·
1 Parent(s): 3a47cfe

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -18
Dockerfile CHANGED
@@ -2,30 +2,20 @@ FROM ubuntu:latest
2
  RUN apt update -y > /dev/null 2>&1 && apt upgrade -y > /dev/null 2>&1 && apt install locales -y \
3
  && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
4
  ENV LANG en_US.utf8
5
- ENV Password=2T2xvhj7eKEdcUMFIcS7CXSmYG1_5GhPcmJuSvqbJA2HruuNU
6
- ENV HOME=/home/ngrok
7
- ENV USER=root
8
  RUN apt install ssh wget unzip -y > /dev/null 2>&1
9
  RUN wget -O ngrok.zip https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.zip > /dev/null 2>&1
10
  RUN unzip ngrok.zip
11
- RUN set -x \
12
- && unzip -o /ngrok.zip -d /bin \
13
- && rm -f /ngrok.zip
14
- RUN echo $HOME
15
- RUN echo $USER
16
- RUN set $USER = $HOME
17
- RUN chmod +x ngrok
18
- RUN echo "./ngrok config add-authtoken 2T2xvhj7eKEdcUMFIcS7CXSmYG1_5GhPcmJuSvqbJA2HruuNUe &&" >>/1.sh
19
- RUN echo "./ngrok tcp 22 --region ap &>/dev/null &" >>/1.sh
20
  RUN mkdir /run/sshd
21
- RUN echo '/usr/sbin/sshd -46DdeiqTt' >>/1.sh
22
  RUN echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
23
  RUN echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config
24
- RUN echo root:rifza123|chpasswd
25
- RUN ssh-keygen -A
26
- RUN /usr/sbin/service ssh start
27
  RUN service ssh start
28
  RUN chmod 755 /1.sh
29
- RUN ls
30
  EXPOSE 80 8888 8080 443 5130 5131 5132 5133 5134 5135 3306
31
- CMD ./1.sh
 
2
  RUN apt update -y > /dev/null 2>&1 && apt upgrade -y > /dev/null 2>&1 && apt install locales -y \
3
  && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
4
  ENV LANG en_US.utf8
5
+ ENV re=ap
6
+ ENV Password=rifza13
7
+ ENV Ngrok=2T2xvhj7eKEdcUMFIcS7CXSmYG1_5GhPcmJuSvqbJA2HruuNUe
8
  RUN apt install ssh wget unzip -y > /dev/null 2>&1
9
  RUN wget -O ngrok.zip https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.zip > /dev/null 2>&1
10
  RUN unzip ngrok.zip
11
+ RUN echo "./ngrok config add-authtoken ${Ngrok} &&" >>/1.sh
12
+ RUN echo "./ngrok tcp 22 --region ${re} &>/dev/null &" >>/1.sh
 
 
 
 
 
 
 
13
  RUN mkdir /run/sshd
14
+ RUN echo '/usr/sbin/sshd -D' >>/1.sh
15
  RUN echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
16
  RUN echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config
17
+ RUN echo root:${Password}|chpasswd
 
 
18
  RUN service ssh start
19
  RUN chmod 755 /1.sh
 
20
  EXPOSE 80 8888 8080 443 5130 5131 5132 5133 5134 5135 3306
21
+ CMD /1.sh