-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.8.3
More file actions
70 lines (55 loc) · 2.76 KB
/
Dockerfile.8.3
File metadata and controls
70 lines (55 loc) · 2.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
ARG STICKY_VERSION=8.3
FROM debian:bookworm
ENV APP_VERSION=8.3 \
REPO=pve-docker \
DEBIAN_FRONTEND=noninteractive
LABEL org.opencontainers.image.source=https://github.com/Neomediatech/${REPO} \
org.opencontainers.package.name=proxmox-backup-server
ARG BIN_SOURCE=https://github.com/Neomediatech/assets/raw/refs/heads/main/bin
ADD --chmod=777 ${BIN_SOURCE}/tini \
${BIN_SOURCE}/http \
${BIN_SOURCE}/curl \
${BIN_SOURCE}/wget \
/usr/local/bin/
ADD --chmod=777 ${BIN_SOURCE}/gosu \
/usr/local/bin/
# set apt config
RUN echo 'APT::Get::Assume-Yes "1";' > /etc/apt/apt.conf.d/00-custom && \
echo 'APT::Install-Recommends "0";' >> /etc/apt/apt.conf.d/00-custom && \
echo 'APT::Install-Suggests "0";' >> /etc/apt/apt.conf.d/00-custom
# install base pkg
RUN apt-get update && \
apt-get install nano vim curl gnupg ca-certificates rsyslog net-tools iputils-ping \
sudo systemd systemd-sysv dbus dbus-user-session && \
rm -rf /var/lib/apt/lists/* /tmp/*
RUN printf '#!/bin/sh\nexit 0' > /usr/sbin/policy-rc.d && \
printf "systemctl start systemd-logind" >> /etc/profile
# add PVE repository
RUN wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg && \
echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-free.list
# Deny initramfs updates
RUN apt-get update && \
apt-get install initramfs-tools && \
rm -rf /var/lib/apt/lists/* /tmp/* && \
echo '#!/bin/bash' > /usr/sbin/update-initramfs && \
echo 'exit 0' >> /usr/sbin/update-initramfs && \
chmod +x /usr/sbin/update-initramfs
RUN apt-get update && \
apt-get install \
postfix open-iscsi chrony \
proxmox-ve=8.3.0 libpve-http-server-perl=5.1.1 libpve-notify-perl=8.1.0 \
libpve-cluster-perl=8.1.0 libpve-guest-common-perl=5.2.2 libpve-rs-perl=0.8.13 \
libpve-storage-perl=8.3.6 libproxmox-rs-perl=0.3.4 libpve-access-control=8.2.0 \
libpve-cluster-api-perl=8.1.0 pve-container=5.2.5 pve-firewall=5.1.2 \
pve-ha-manager=4.0.5 qemu-server=8.3.14 pve-docs=8.3.2 pve-manager=8.3.7 proxmox-default-kernel && \
rm -rf /var/lib/apt/lists/* /tmp/* /etc/apt/sources.list.d/pve-enterprise.list && \
sed -i 's/^ConditionVirtualization=!container$/#ConditionVirtualization=!container/' /lib/systemd/system/lxcfs.service
#set (temporary) password for root
RUN echo "root:root"|chpasswd
COPY entrypoint.sh /
RUN sed -i '/imklog/s/^/#/' /etc/rsyslog.conf && \
echo '*.* -/proc/1/fd/1' >> /etc/rsyslog.conf && \
chmod +x /entrypoint.sh
STOPSIGNAL SIGINT
ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "/sbin/init"]