🐜 fix(runner): Fix Pacman failing to install packages on Amazon Linux 2 (#167)

CachyOS v3 fails to run pacman while on Amazon Linux 2... causing issues
with running our hosted version on ECS

Exact errors:
```bash
[root@2b6cbba9d746 /]# sudo pacman -Syu vim
error: failed to initialize alpm library:
(root: /, dbpath: /var/lib/pacman/)
could not find or read directory
```
This commit is contained in:
Wanjohi
2025-01-27 07:14:21 +03:00
committed by GitHub
parent bec5ba7c99
commit 4c33d7fe00

View File

@@ -1,5 +1,5 @@
# Container build arguments #
ARG BASE_IMAGE=docker.io/cachyos/cachyos-v3:latest
ARG BASE_IMAGE=docker.io/cachyos/cachyos:latest
#******************************************************************************
# nestri-server-builder
@@ -71,10 +71,10 @@ FROM ${BASE_IMAGE} AS runtime
## Install Graphics, Media, and Audio packages ##
RUN sed -i '/#\[multilib\]/,/#Include = \/etc\/pacman.d\/mirrorlist/ s/#//' /etc/pacman.conf && \
sed -i "s/#Color/Color/" /etc/pacman.conf && \
pacman --noconfirm -Sy archlinux-keyring && \
pacman --noconfirm -Syu archlinux-keyring && \
dirmngr </dev/null > /dev/null 2>&1 && \
# Install mesa-git before Steam for simplicity
pacman --noconfirm -Sy mesa-git && \
pacman --noconfirm -Sy mesa && \
# Install Steam
pacman --noconfirm -Sy steam steam-native-runtime && \
# Clean up pacman cache