1. 更新前端界面和Nginx配置
2. 更新Dockerfile设置
This commit is contained in:
10
docker-ubuntu/Dockerfile
Normal file
10
docker-ubuntu/Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM ubuntu:latest
|
||||
LABEL authors="Endera"
|
||||
|
||||
WORKDIR /root
|
||||
|
||||
COPY prepare_ubuntu.sh prepare.sh
|
||||
|
||||
RUN bash prepare.sh
|
||||
|
||||
ENTRYPOINT ["/bin/bash"]
|
||||
16
docker-ubuntu/prepare_ubuntu.sh
Normal file
16
docker-ubuntu/prepare_ubuntu.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# 下载必须依赖
|
||||
bash -c "cat << EOF > /etc/apt/sources.list && apt update
|
||||
deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
|
||||
deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
|
||||
deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
|
||||
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
|
||||
deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
|
||||
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
|
||||
deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
|
||||
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
|
||||
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 screen openjdk-17-jdk nginx -y
|
||||
Reference in New Issue
Block a user