28 lines
575 B
Docker
28 lines
575 B
Docker
FROM docker.io/library/alpine:3.19
|
|
|
|
RUN --mount=type=cache,target=/var/cache \
|
|
apk add \
|
|
age \
|
|
curl \
|
|
git \
|
|
&& ln -snf /host/etc/passwd /etc/passwd \
|
|
&& ln -snf /host/etc/group /etc/group \
|
|
&& for cmd in \
|
|
rpm-ostree \
|
|
systemctl \
|
|
systemd-sysusers \
|
|
; do ln -s nsenter.sh /usr/local/bin/${cmd}; done \
|
|
&& :
|
|
|
|
COPY --from=docker.io/cuelang/cue:0.7.0 /usr/bin/cue /usr/local/bin/cue
|
|
|
|
COPY --from=git.pyrocufflink.net/containerimages/tmpl /tmpl /usr/local/bin/tmpl
|
|
|
|
COPY nsenter.sh /usr/local/bin/nsenter.sh
|
|
|
|
COPY config.sh /
|
|
|
|
ENTRYPOINT []
|
|
|
|
CMD ["/config.sh"]
|