forked from gh-mirrored/hallstatt
improve build script to install docker
This commit is contained in:
+3
-1
@@ -1,10 +1,12 @@
|
|||||||
FROM scratch AS ctx
|
FROM scratch AS ctx
|
||||||
|
|
||||||
COPY build.sh /build.sh
|
COPY build.sh /build.sh
|
||||||
COPY repos /repos
|
|
||||||
|
|
||||||
FROM quay.io/centos-bootc/centos-bootc:c10s
|
FROM quay.io/centos-bootc/centos-bootc:c10s
|
||||||
|
|
||||||
|
COPY repos/docker-ce.repo /etc/yum.repos.d/docker-ce.repo
|
||||||
|
|
||||||
|
|
||||||
RUN --mount=type=tmpfs,dst=/var \
|
RUN --mount=type=tmpfs,dst=/var \
|
||||||
--mount=type=tmpfs,dst=/tmp \
|
--mount=type=tmpfs,dst=/tmp \
|
||||||
--mount=type=tmpfs,dst=/boot \
|
--mount=type=tmpfs,dst=/boot \
|
||||||
|
|||||||
@@ -79,8 +79,6 @@ EOF
|
|||||||
|
|
||||||
echo "Installing Docker CE..."
|
echo "Installing Docker CE..."
|
||||||
|
|
||||||
cp /repos/docker-ce.repo /etc/yum.repos.d/docker-ce.repo
|
|
||||||
|
|
||||||
dnf config-manager --set-disabled docker-ce-stable
|
dnf config-manager --set-disabled docker-ce-stable
|
||||||
|
|
||||||
# 4. Install Docker packages
|
# 4. Install Docker packages
|
||||||
|
|||||||
Reference in New Issue
Block a user