mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-11-01 14:56:31 +00:00
This should make it easier to switch out `init` for other versions, although the `getty` config still needs to be removed. - use `/bin/rc.init` for start - use `rc.shutdown` for stop - make `rc.init` run other code. - merge `containers` and `containerd` startup code Signed-off-by: Justin Cormack <justin.cormack@docker.com>
16 lines
441 B
Docker
16 lines
441 B
Docker
FROM linuxkit/alpine:630ee558e4869672fae230c78364e367b8ea67a9 AS mirror
|
|
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
|
RUN apk add --no-cache --initdb -p /out alpine-baselayout busybox musl
|
|
|
|
# Remove apk residuals. We have a read-only rootfs, so apk is of no use.
|
|
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
|
|
|
|
FROM scratch
|
|
ENTRYPOINT []
|
|
CMD []
|
|
WORKDIR /
|
|
COPY --from=mirror /out/ /
|
|
COPY init /
|
|
COPY etc etc/
|
|
COPY bin bin/
|