28 lines
840 B
Docker
28 lines
840 B
Docker
FROM debian
|
|
|
|
RUN apt-get update && apt-get install --no-install-recommends -y \
|
|
ca-certificates \
|
|
curl \
|
|
gnupg \
|
|
lsb-release \
|
|
software-properties-common \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && \
|
|
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
|
|
|
|
RUN apt-get update && apt-get install --no-install-recommends -y \
|
|
apt-transport-https \
|
|
containerd.io \
|
|
docker-ce \
|
|
docker-ce-cli \
|
|
systemd-sysv \
|
|
udev \
|
|
vim.tiny \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
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
|