mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-24 16:14:00 +00:00
Files in `/etc/local.d/` will be executed: If a file in this directory is executable and it has a .start extension, it will be run when the local service is started. If a file is executable and it has a .stop extension, it will be run when the local service is stopped. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
57 lines
1.6 KiB
Docker
57 lines
1.6 KiB
Docker
FROM mobylinux/alpine-base:60704958fa155febef3bd4c521548d81a6a824f4
|
|
|
|
ENV ARCH=x86_64
|
|
|
|
RUN \
|
|
addgroup -g 50 docker && \
|
|
adduser -G docker -u 1001 -s /bin/sh -D -g "Docker" docker && \
|
|
passwd -d root && \
|
|
adduser -D -H -s /sbin/nologin dockremap
|
|
|
|
COPY . .
|
|
RUN rm Dockerfile
|
|
|
|
RUN \
|
|
rc-update add swap boot && \
|
|
rc-update add sysctl boot && \
|
|
rc-update add bootmisc boot && \
|
|
rc-update add urandom boot && \
|
|
rc-update add hostname boot && \
|
|
rc-update add vsudd boot && \
|
|
rc-update add sysklogd boot && \
|
|
rc-update add hwclock boot && \
|
|
rc-update add networking boot && \
|
|
rc-update add acpid default && \
|
|
rc-update add chronyd default && \
|
|
rc-update add savecache shutdown && \
|
|
rc-update add killprocs shutdown && \
|
|
rc-update add mount-ro shutdown && \
|
|
rc-update add dmesg sysinit && \
|
|
rc-update add devfs sysinit && \
|
|
rc-update add hwdrivers sysinit && \
|
|
rc-update add rngd && \
|
|
rc-update add sysfs && \
|
|
rc-update add sysfsconf && \
|
|
rc-update add fsck && \
|
|
rc-update add root && \
|
|
rc-update add crond && \
|
|
rc-update add local && \
|
|
rc-update add localmount && \
|
|
rc-update add docker default && \
|
|
rc-update add proxy default && \
|
|
rc-update add transfused default && \
|
|
rc-update add automount boot && \
|
|
rc-update add diagnostics default && \
|
|
rc-update add binfmt_misc default && \
|
|
rc-update add hostsettings boot && \
|
|
rc-update add hv_kvp_daemon default && \
|
|
rc-update add hv_vss_daemon default && \
|
|
rc-update add oom default && \
|
|
rc-update add test default && \
|
|
rc-update add containerd default && \
|
|
rc-update add aws default && \
|
|
rc-update add azure default && \
|
|
true
|
|
|
|
CMD ["/mkinitrd.sh"]
|