mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 01:06:27 +00:00
* Update linuxkit/alpine Signed-off-by: Avi Deitcher <avi@deitcher.net> * tools/alpine: Update to latest Signed-off-by: Avi Deitcher <avi@deitcher.net> * tools: Update to the latest linuxkit/alpine Signed-off-by: Avi Deitcher <avi@deitcher.net> * Update use of tools to latest Signed-off-by: Avi Deitcher <avi@deitcher.net> * tests: Update packages to the latest linuxkit/alpine Signed-off-by: Avi Deitcher <avi@deitcher.net> * Update use of test packages to latest Signed-off-by: Avi Deitcher <avi@deitcher.net> * pkgs: Update packages to the latest linuxkit/alpine Signed-off-by: Avi Deitcher <avi@deitcher.net> * Update package tags Signed-off-by: Avi Deitcher <avi@deitcher.net> --------- Signed-off-by: Avi Deitcher <avi@deitcher.net>
36 lines
1.1 KiB
Docker
36 lines
1.1 KiB
Docker
# Dockerfile to build linuxkit/getty for linuxkit
|
|
FROM linuxkit/alpine:35b33c6b03c40e51046c3b053dd131a68a26c37a 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 \
|
|
apk-tools \
|
|
busybox \
|
|
ca-certificates \
|
|
musl \
|
|
tini \
|
|
util-linux \
|
|
wireguard-tools \
|
|
&& true
|
|
RUN mv /out/etc/apk/repositories.upstream /out/etc/apk/repositories
|
|
|
|
#
|
|
# We require a version of `setsid(1)` which supports the `-w`
|
|
# option, which is not available in all implementations (e.g. the
|
|
# `busybox` implementation does not support it). When this is run
|
|
# as part of a LinuxKit `init` image (rather than as a standalone
|
|
# container) we cannot guarantee which version of `setsid` will
|
|
# be present once the layers are combined, so we take a copy of
|
|
# our own, known good, version for use later.
|
|
RUN cp /out/usr/bin/setsid /out/usr/bin/setsid.getty
|
|
# we really do not want a rogue inittab here
|
|
RUN rm -rf /out/etc/inittab
|
|
|
|
FROM scratch
|
|
ENTRYPOINT ["/sbin/tini","-s","-v","--"]
|
|
WORKDIR /
|
|
COPY --from=mirror /out/ /
|
|
COPY usr/ /usr/
|
|
COPY etc/ /etc/
|
|
CMD ["/usr/bin/rungetty.sh"]
|