Compare commits

...

3 Commits
v0.1 ... main

Author SHA1 Message Date
david 11c729afbf fixed glibc upgrade problem 2021-03-06 22:55:20 +01:00
david b022518c8b added nano 2021-02-14 20:04:25 +01:00
david 426c59a44a added workaround for running on older kernel 2021-02-14 19:28:14 +01:00
1 changed files with 10 additions and 2 deletions

View File

@ -4,6 +4,14 @@ LABEL Description="This image is based on Archlinux and is used for running game
Version="0.1" \
License="MIT"
# WORKAROUND for glibc 2.33 and old Docker
# See https://github.com/actions/virtual-environments/issues/2658
# Thanks to https://github.com/lxqt/lxqt-panel/pull/1562
RUN patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst && \
curl -LO "https://repo.archlinuxcn.org/x86_64/$patched_glibc" && \
bsdtar -C / -xvf "$patched_glibc" && \
echo "IgnorePkg = glibc lib32-glibc" >> /etc/pacman.conf
ENV USER_ID=1000
ENV GROUP_ID=1000
ENV USERNAME=steam
@ -11,7 +19,7 @@ ENV USERNAME=steam
VOLUME [ "/home/${USERNAME}" ]
RUN pacman -Syu --noconfirm && \
pacman -S --noconfirm --needed base-devel openssh git sudo cargo tmux screen vim wget python unzip bc jq netcat && \
pacman -S --noconfirm --needed base-devel openssh git sudo cargo tmux screen vim wget python unzip bc jq netcat nano && \
groupadd -g ${GROUP_ID} ${USERNAME} && \
useradd -u ${USER_ID} -g ${GROUP_ID} -M -d /home/${USERNAME} -s /bin/bash ${USERNAME} && \
chown ${USER_ID}:${GROUP_ID} /home/${USERNAME} && \
@ -31,4 +39,4 @@ WORKDIR /home/${USERNAME}
COPY entrypoint.sh /opt/
CMD /opt/entrypoint.sh
CMD /opt/entrypoint.sh