mirror of
https://github.com/linka-cloud/d2vm.git
synced 2024-11-14 12:06:24 +00:00
20 lines
453 B
Docker
20 lines
453 B
Docker
|
FROM {{ .Image }}
|
||
|
|
||
|
USER root
|
||
|
|
||
|
RUN apt-get -y update && \
|
||
|
DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
|
||
|
linux-image-amd64
|
||
|
|
||
|
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||
|
systemd-sysv \
|
||
|
systemd \
|
||
|
dbus \
|
||
|
iproute2 \
|
||
|
udhcpc \
|
||
|
iputils-ping
|
||
|
|
||
|
RUN systemctl preset-all
|
||
|
|
||
|
RUN echo "root:{{- if .Password}}{{ .Password}}{{- else}}root{{- end}}" | chpasswd
|