-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
23 lines (22 loc) · 920 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu
RUN apt update
RUN DEBIAN_FRONTEND=noninteractive apt install ssh wget npm apache2 php php-curl mysql-server php-cli php-fpm php-json php-common php-mysql php-zip php-gd php-mbstring php-xml php-pear php-bcmath -y
RUN npm install -g wstunnel
RUN mkdir /run/sshd
RUN a2enmod proxy
RUN a2enmod proxy_http
RUN a2enmod proxy_wstunnel
RUN a2enmod rewrite
RUN wget https://raw.githubusercontent.com/jinshulumengchuang/Tuhttpd2/main/000-default.conf
RUN rm /etc/apache2/sites-available/000-default.conf
RUN mv 000-default.conf /etc/apache2/sites-available
RUN echo 'Is Tutu!' >/var/www/html/index.html
RUN echo 'wstunnel -s 0.0.0.0:8989 & ' >>/tu.sh
RUN echo 'service mysql restart' >>/tu.sh
RUN echo 'service apache2 restart' >>/tu.sh
RUN echo '/usr/sbin/sshd -D' >>/tu.sh
RUN echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
RUN echo root:Tu!192168|chpasswd
RUN chmod 755 /tu.sh
EXPOSE 80
CMD /tu.sh