2023-08-15 11:02:35 +08:00
|
|
|
FROM debian:11
|
|
|
|
|
|
|
|
# Set official Debian sources
|
2023-08-22 12:15:30 +08:00
|
|
|
RUN rm /etc/apt/sources.list &&
|
|
|
|
echo "deb http://deb.debian.org/debian/ bullseye main contrib non-free" >>/etc/apt/sources.list &&
|
|
|
|
echo "deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free" >>/etc/apt/sources.list &&
|
|
|
|
echo "deb http://deb.debian.org/debian/ bullseye-backports main contrib non-free" >>/etc/apt/sources.list &&
|
|
|
|
echo "deb http://security.debian.org/debian-security bullseye-security main contrib" >>/etc/apt/sources.list
|
2023-08-15 11:02:35 +08:00
|
|
|
|
|
|
|
# Install base packages
|
2023-08-22 12:15:30 +08:00
|
|
|
RUN apt-get update &&
|
2023-08-15 11:02:35 +08:00
|
|
|
apt-get install wget systemd nano vim curl gnupg ca-certificates -y
|
|
|
|
|
|
|
|
#add proxmox repo
|
|
|
|
#use jiangcuo_proxmox_arm64 https://github.com/jiangcuo/Proxmox-Arm64
|
2023-08-22 12:15:30 +08:00
|
|
|
RUN echo "deb https://global.mirrors.apqa.cn/proxmox/ pvearm main" >/etc/apt/sources.list.d/foxi.list &&
|
|
|
|
wget --no-check-certificate https://global.mirrors.apqa.cn/proxmox/gpg.key -O /etc/apt/trusted.gpg.d/gpg.key &&
|
2023-08-15 11:54:36 +08:00
|
|
|
chmod +r /etc/apt/trusted.gpg.d/gpg.key
|
2023-08-15 11:02:35 +08:00
|
|
|
|
2023-08-22 12:15:30 +08:00
|
|
|
#intall proxmox-ve without recommends.
|
|
|
|
RUN apt-get update &&
|
|
|
|
DEBIAN_FRONTEND=noninteractiv apt-get -y --no-install-recommends install proxmox-ve || echo ok
|
2023-08-15 11:02:35 +08:00
|
|
|
|
|
|
|
#set passwd for root
|
2023-08-22 12:15:30 +08:00
|
|
|
RUN echo "root:root" | chpasswd
|
2023-08-15 11:02:35 +08:00
|
|
|
|
|
|
|
#clean
|
2023-08-22 12:15:30 +08:00
|
|
|
RUN rm -rf /var/lib/apt/lists/* /*.deb
|
2023-08-15 11:02:35 +08:00
|
|
|
|
|
|
|
#use setup.sh to start proxmox service
|
|
|
|
STOPSIGNAL SIGINT
|
|
|
|
CMD [ "/lib/systemd/systemd", "log-level=info", "unit=sysinit.target"]
|