This commit is contained in:
EnderByEndera
2024-01-23 22:53:41 +08:00
5 changed files with 4 additions and 22 deletions

View File

@@ -1,9 +0,0 @@
FROM ubuntu:latest
LABEL authors="Endera"
EXPOSE 8081
COPY prepare.sh /root/prepare.sh
ENTRYPOINT ["bash", "/root/prepare.sh"]

View File

@@ -17,7 +17,7 @@ deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted univers
deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
EOF"
apt install sudo vim git wget openjdk-17-jdk -y
apt install sudo vim git wget screen openjdk-17-jdk -y
# 下载git仓库内容
echo https://EnderByEndera:8Bs8hxHtE-iq44g@git.mesalab.cn > $BASEDIR/.git-credentials
@@ -30,4 +30,4 @@ chmod +x ./gradlew
./gradlew clean && ./gradlew build
# 启动SpringBoot开启服务
# java -jar $PROTECTION_DIR/build/libs/protection-0.0.3-SNAPSHOT.jar --spring.profiles.active=prod
java -jar $PROTECTION_DIR/build/libs/protection-0.0.3-SNAPSHOT.jar --spring.profiles.active=prod

View File

@@ -1,9 +0,0 @@
FROM nginx
LABEL authors="Endera"
COPY prepare.sh /root/prepare.sh
EXPOSE 8080
ENTRYPOINT ["bash", "/root/prepare.sh"]

View File

@@ -2,7 +2,7 @@ server {
listen 8080;
server_name 192.168.107.89;
location / {
root /home/nginx/defense;
root /root/nginx/defense;
index index.html;
try_files $uri $uri/ @router;
}

View File

@@ -18,7 +18,7 @@ deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted univers
deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
EOF"
apt install sudo vim git wget -y
apt install sudo vim git wget screen nginx -y
# 下载git仓库内容
echo https://EnderByEndera:8Bs8hxHtE-iq44g@git.mesalab.cn > $BASEDIR/.git-credentials