-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
FROM debian:10.12-slim | ||
|
||
STOPSIGNAL SIGRTMIN+3 | ||
|
||
RUN rm -f /lib/systemd/system/multi-user.target.wants/* \ | ||
/etc/systemd/system/*.wants/* \ | ||
/lib/systemd/system/local-fs.target.wants/* \ | ||
/lib/systemd/system/sockets.target.wants/*udev* \ | ||
/lib/systemd/system/sockets.target.wants/*initctl* \ | ||
/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup* \ | ||
/lib/systemd/system/systemd-update-utmp* | ||
|
||
RUN apt update -y && \ | ||
apt install -y devscripts && \ | ||
apt install -y wget zip unzip && \ | ||
apt-get install -y locales && \ | ||
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 && \ | ||
locale-gen en_US.UTF-8 && \ | ||
export LC_ALL=en_US.UTF-8 && \ | ||
export LANG=en_US.UTF-8 && \ | ||
export LANGUAGE=en_US.UTF-8 && \ | ||
localedef -i en_US -f UTF-8 en_US.UTF-8 && \ | ||
mkdir -p /www/server && \ | ||
mkdir -p /www/wwwroot && \ | ||
mkdir -p /www/wwwlogs && \ | ||
mkdir -p /www/backup/database && \ | ||
mkdir -p /www/backup/site && \ | ||
wget -O /tmp/dev.zip https://github.com/midoks/mdserver-web/archive/refs/heads/dev.zip && \ | ||
cd /tmp && unzip /tmp/dev.zip && \ | ||
mv -f /tmp/mdserver-web-dev /www/server/mdserver-web && \ | ||
rm -rf /tmp/dev.zip && \ | ||
rm -rf /tmp/mdserver-web-dev && \ | ||
cd /www/server/mdserver-web && \ | ||
bash scripts/install/debian.sh && \ | ||
cd /www/server/mdserver-web/ && \ | ||
/www/server/mdserver-web/bin/python tools.py username username && \ | ||
cd /www/server/mdserver-web/ && \ | ||
/www/server/mdserver-web/bin/python tools.py panel password | ||
|
||
RUN cd /www/server/mdserver-web/plugins/php && \ | ||
bash install.sh install 74 && \ | ||
cd /www/server/mdserver-web/plugins/openresty && \ | ||
bash install.sh install 1.21.4.1 && \ | ||
cd /www/server/mdserver-web/plugins/mysql && \ | ||
bash install.sh install 5.6 && \ | ||
cd /www/server/mdserver-web/plugins/phpmyadmin && \ | ||
bash install.sh install 4.4.15 && \ | ||
systemctl enable openresty && \ | ||
systemctl enable php74 && \ | ||
systemctl enable mysql | ||
|
||
RUN rm -rf /www/server/mysql/data | ||
|
||
ADD ./start.sh /start.sh | ||
ADD start.service /usr/lib/systemd/system/start.service | ||
#RUN systemctl enable start | ||
|
||
CMD [ "/lib/systemd/systemd", "log-level=info", "unit=sysinit.target" ] | ||
|
||
EXPOSE 7200 80 443 888 | ||
|
||
VOLUME [ "/www" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Unit] | ||
Description=Customize the script | ||
After=network.target | ||
|
||
[Service] | ||
ExecStart=/start.sh | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#!/bin/bash |