This repository has been archived on 2024-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
adlin/pkg/debian-tuto2/Dockerfile

36 lines
930 B
Docker
Raw Normal View History

2018-03-05 17:00:55 +00:00
FROM debian
2022-03-08 16:39:17 +00:00
RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list.d/backports.list && \
2020-03-27 12:10:43 +00:00
apt-get update && apt-get install --no-install-recommends -y \
2018-03-05 17:00:55 +00:00
busybox \
2019-03-14 05:46:09 +00:00
ca-certificates \
console-data \
2018-03-05 17:00:55 +00:00
cron \
2019-03-14 05:46:09 +00:00
curl \
2022-03-08 18:17:38 +00:00
fdisk \
2018-03-05 17:00:55 +00:00
ifupdown \
kbd \
2019-03-14 05:46:09 +00:00
kmod \
2018-03-05 17:00:55 +00:00
nano \
openssh-server \
2022-03-08 16:39:17 +00:00
python3 \
python3-apt \
2020-03-27 12:10:43 +00:00
esmtp \
2018-03-05 17:00:55 +00:00
systemd-sysv \
udev \
vim.tiny \
2020-03-27 12:10:43 +00:00
wireguard-tools \
2021-02-04 08:42:10 +00:00
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /etc/ssh/ssh_host_*_key*
2018-03-05 17:00:55 +00:00
RUN rm -rf /etc/init.d/ && \
mkdir /overlay && \
ln -sf /init /sbin/init && \
ln -sf /lib/systemd/system/systemd-netwkord.service /etc/systemd/system/multi-user.target.wants/systemd-networkd.service && \
sed '/127.0.0.1/s/$/adlin2/' /etc/hosts
2018-03-05 17:00:55 +00:00
2019-03-14 05:46:09 +00:00
COPY default.script /etc/udhcpc/default.script
2018-03-05 17:00:55 +00:00
COPY issue /etc/issue
COPY gai.conf /etc/gai.conf
2018-03-05 17:00:55 +00:00
COPY sshd_config /etc/ssh/sshd_config