add arg for controlling default mirror
This commit is contained in:
parent
55875e3752
commit
e06b69f2f1
@ -3,7 +3,9 @@ FROM archlinux/archlinux:base-devel
|
|||||||
COPY scripts/entrypoint.sh /scripts/entrypoint.sh
|
COPY scripts/entrypoint.sh /scripts/entrypoint.sh
|
||||||
COPY scripts/testing.arch.sh /scripts/testing.sh
|
COPY scripts/testing.arch.sh /scripts/testing.sh
|
||||||
|
|
||||||
RUN sed -i '1iServer = https://mirror.sanin.dev/arch-linux/\$repo/os/\$arch' /etc/pacman.d/mirrorlist && \
|
ARG MIRROR=https://mirror.sanin.dev/arch-linux/\$repo/os/\$arch
|
||||||
|
|
||||||
|
RUN sed -i "1iServer = $MIRROR" /etc/pacman.d/mirrorlist && \
|
||||||
pacman -Syu --noconfirm git clang sudo devtools vim bash-completion && \
|
pacman -Syu --noconfirm git clang sudo devtools vim bash-completion && \
|
||||||
chmod +x /scripts/* && \
|
chmod +x /scripts/* && \
|
||||||
useradd -m user && \
|
useradd -m user && \
|
||||||
|
@ -5,7 +5,7 @@ COPY scripts/testing.artix.sh /scripts/testing.sh
|
|||||||
|
|
||||||
ARG MIRROR=https://mirror.sanin.dev/artix-linux/\$repo/os/\$arch
|
ARG MIRROR=https://mirror.sanin.dev/artix-linux/\$repo/os/\$arch
|
||||||
|
|
||||||
RUN sed -i '1iServer = $MIRROR' /etc/pacman.d/mirrorlist && \
|
RUN sed -i "1iServer = $MIRROR" /etc/pacman.d/mirrorlist && \
|
||||||
pacman -Syu --noconfirm git clang sudo vim glibc openssh bash-completion && \
|
pacman -Syu --noconfirm git clang sudo vim glibc openssh bash-completion && \
|
||||||
chmod +x /scripts/* && \
|
chmod +x /scripts/* && \
|
||||||
useradd -m user && \
|
useradd -m user && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user