forked from gh-mirrored/hallstatt
19 lines
564 B
Docker
19 lines
564 B
Docker
FROM scratch AS ctx
|
|
|
|
COPY build.sh /build.sh
|
|
|
|
FROM quay.io/centos-bootc/centos-bootc:c10s
|
|
|
|
COPY repos/docker-ce.repo /etc/yum.repos.d/docker-ce.repo
|
|
COPY build_files/docker.conf /usr/lib/sysusers.d/docker.conf
|
|
COPY build_files/dhcpd.conf /usr/lib/sysusers.d/dhcpd.conf
|
|
|
|
RUN --mount=type=tmpfs,dst=/var \
|
|
--mount=type=tmpfs,dst=/tmp \
|
|
--mount=type=tmpfs,dst=/boot \
|
|
--mount=type=tmpfs,dst=/run \
|
|
--mount=type=bind,from=ctx,source=/,dst=/tmp/build-scripts \
|
|
/tmp/build-scripts/build.sh
|
|
|
|
RUN rm -rf /var/* && bootc container lint --fatal-warnings
|