pve-docker/sc/Dockerfile

41 lines
1.1 KiB
Docker

# syntax=docker/dockerfile:1
FROM quay.io/toolbx-images/debian-toolbox:12
ENV PVE_VERSION=8.1 \
SERVICE=pve-docker \
DEBIAN_FRONTEND=noninteractive
# 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
RUN apt-get update && \
apt-get dist-upgrade
RUN \
echo "**** install runtime packages ****" && \
apt update && apt install -y socat logrotate neovim netcat-openbsd sudo openssh-server wget systemctl curl gnupg ca-certificates rsyslog net-tools iputils-ping && \
echo "**** setup openssh environment ****" && \
useradd -m rander && \
usermod --shell /bin/bash rander && \
rm -rf \
/tmp/* \
$HOME/.cache
#set (temporary) password for root
RUN echo "root:root"|chpasswd
# add local files
EXPOSE 2222
EXPOSE 8006
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
#use setup.sh to start proxmox service
STOPSIGNAL SIGINT
ENTRYPOINT [ "/entrypoint.sh" ]
VOLUME /config
#CMD [ "/lib/systemd/systemd", "log-level=info", "unit=sysinit.target"]