summaryrefslogtreecommitdiffstats
path: root/molecule/git/Dockerfile.j2
diff options
context:
space:
mode:
Diffstat (limited to 'molecule/git/Dockerfile.j2')
-rw-r--r--molecule/git/Dockerfile.j25
1 files changed, 4 insertions, 1 deletions
diff --git a/molecule/git/Dockerfile.j2 b/molecule/git/Dockerfile.j2
index 4db2119f..482fe6c7 100644
--- a/molecule/git/Dockerfile.j2
+++ b/molecule/git/Dockerfile.j2
@@ -2,6 +2,9 @@ FROM docker.io/library/alpine:3.23
RUN apk add --no-cache python3 openrc \
&& mkdir -p /run/openrc \
- && touch /run/openrc/softlevel
+ && touch /run/openrc/softlevel \
+ && mkdir -p /etc/network \
+ && printf 'auto lo\niface lo inet loopback\n' > /etc/network/interfaces \
+ && rc-update add networking boot
CMD ["/sbin/init"]