Skip to content

Commit 41be6ae

Browse files
authored
Refactor keyring setup in Dockerfile
Updated keyring installation commands and added gnupg to package installations.
1 parent b216d6b commit 41be6ae

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

base.Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,27 @@ ENV PATH="/usr/bin:${PATH}"
1515

1616
RUN uname -m && \
1717
pacman-key --init && pacman-key --refresh-keys && \
18-
pacman-key --recv-keys fh@manjaro.org && \
19-
pacman-key --lsign-key fh@manjaro.org && \
20-
pacman-key --recv-keys integral@archlinux.org && \
21-
pacman-key --lsign-key integral@archlinux.org && \
18+
rm -r /etc/pacman.d/gnupg && \
2219
pacman-mirrors --geoip
2320

2421
RUN [[ "${TARGETPLATFORM}" == "linux/amd64" ]] || exit 0 && \
25-
pacman -Syyu --noconfirm --needed archlinux-keyring manjaro-keyring && \
26-
pacman-key --populate archlinux manjaro
22+
pacman -Syyu --noconfirm --needed gnupg archlinux-keyring manjaro-keyring && \
23+
pacman-key --init && \
24+
pacman-key --populate archlinux manjaro && \
25+
pacman-key --refresh-keys
2726

2827
RUN [[ "${TARGETPLATFORM}" == "linux/arm64" ]] || exit 0 && \
29-
pacman -Syyu --noconfirm --needed archlinuxarm-keyring manjaro-arm-keyring && \
30-
pacman-key --populate archlinuxarm manjaro-arm
28+
pacman -Syyu --noconfirm --needed gnupg archlinuxarm-keyring manjaro-arm-keyring && \
29+
pacman-key --init && \
30+
pacman-key --populate archlinuxarm manjaro-arm && \
31+
pacman-key --refresh-keys
3132

3233
# set everything to be a dependency
3334
RUN pacman -Qeq | grep -q ^ && pacman -D --asdeps $(pacman -Qeq) || echo "nothing to set as dependency"
3435

3536
# mark all base pkgs as explicitly installed
3637
RUN pacman -S --asexplicit --needed --noconfirm base
3738

38-
3939
# mark essentials as explicitly installed
4040
RUN pacman -S --asexplicit --needed --noconfirm \
4141
lsb-release \

0 commit comments

Comments
 (0)