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

32 lines
862 B
Docker
Raw Normal View History

2018-03-05 17:00:55 +00:00
FROM debian
RUN apt-get update && apt-get install --no-install-recommends -y \
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 \
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 \
python \
2018-03-05 17:00:55 +00:00
ssmtp \
systemd-sysv \
udev \
vim.tiny \
&& rm -rf /var/lib/apt/lists/*
2019-03-14 05:46:09 +00:00
RUN curl -L -o /tmp/wireguard.deb http://httpredir.debian.org/debian/pool/main/w/wireguard/wireguard-tools_0.0.20190227-1_amd64.deb && dpkg -i /tmp/wireguard.deb; rm /tmp/wireguard.deb
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
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