diff --git a/alpine/Dockerfile b/alpine/Dockerfile index 2f94e932a..adb52574d 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -8,6 +8,8 @@ RUN apk update && apk upgrade && apk add e2fsprogs docker COPY etc /etc/ -RUN ln -s /bin/busybox /init +RUN \ + setup-timezone -z UTC && \ + ln -s /bin/busybox /init CMD ["/bin/sh"] diff --git a/alpine/Makefile b/alpine/Makefile index 7afe17ed2..eb00ea379 100644 --- a/alpine/Makefile +++ b/alpine/Makefile @@ -1,6 +1,6 @@ all: initrd.img -ETCFILES=etc/motd etc/inittab etc/hostname- etc/resolv.conf- etc/hosts- +ETCFILES=etc/motd etc/inittab etc/network/interfaces etc/hostname- etc/resolv.conf- etc/hosts- initrd.img: Dockerfile mkinitrd.sh repositories $(ETCFILES) rm -f initrd.img diff --git a/alpine/etc/network/interfaces b/alpine/etc/network/interfaces new file mode 100644 index 000000000..c4747717f --- /dev/null +++ b/alpine/etc/network/interfaces @@ -0,0 +1,6 @@ +auto lo +iface lo inet loopback + +auto eth0 +iface eth0 inet dhcp + hostname docker