Skip to content

Commit 4707291

Browse files
committed
fix: Void Dockerfile — bypass broken repos with --repository flag
1 parent 6b3bc63 commit 4707291

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

tests/docker/Dockerfile.void

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
FROM ghcr.io/void-linux/void-linux:latest
1+
FROM voidlinux/voidlinux:latest
22

3-
# Override repos immediately with CDN (most reliable mirror)
4-
RUN rm -f /usr/share/xbps.d/*.conf \
5-
&& echo 'repository=https://repo-default.voidlinux.org/current' > /usr/share/xbps.d/00-repository-main.conf \
6-
&& echo 'repository=https://repo-default.voidlinux.org/current/nonfree' > /usr/share/xbps.d/10-repository-nonfree.conf \
7-
&& xbps-install -S \
8-
&& xbps-install -y base-devel curl git cmake nodejs python3 cargo bash \
3+
# GitHub Actions: default repos point to broken mirror.
4+
# Use --repository flag to bypass repo configs entirely.
5+
RUN xbps-install -Sy --repository=https://repo-default.voidlinux.org/current \
6+
base-devel curl git cmake nodejs python3 cargo bash \
97
&& rm -rf /var/cache/xbps/*
108

119
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)