Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
david | 11c729afbf | |
david | b022518c8b | |
david | 426c59a44a |
12
Dockerfile
12
Dockerfile
|
@ -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
|
||||
|
|
Reference in New Issue