FROM docker.io/rusian/hyperbola:0.4.1 LABEL MAINTAINER="heckyel@hyperbola.info" ARG pkgname=tmate ARG pkgver=2.4.0 RUN mv -T /etc/pacman.d/mirrorlist.pacnew /etc/pacman.d/mirrorlist || true && \ sed -i 's|root:x:0:0:root:/root:/bin/sh|root:x:0:0:root:/root:/bin/bash|g' /etc/passwd && \ pacman -Syu --noconfirm && \ pacman -S --noconfirm \ procps-ng \ net-tools \ bash-completion \ git \ nano && \ pacman -Scc --noconfirm RUN curl -Ls https://github.com/tmate-io/tmate/releases/download/${pkgver}/${pkgname}-${pkgver}-static-linux-amd64.tar.xz -o /tmp/${pkgname}-${pkgver}.tar.xz && \ curl -Ls https://git.sr.ht/~heckyel/hyperterm/blob/master/install.sh -o "$HOME/install.sh" WORKDIR /tmp/ RUN tar xf ${pkgname}-${pkgver}.tar.xz && \ mv ${pkgname}-${pkgver}-static-linux-amd64/${pkgname} /usr/bin && \ bash "$HOME/install.sh" -s && \ rm -rf "$HOME/install.sh" && \ rm -rf /tmp/* && \ rm -rf "$HOME/.bash_history" WORKDIR /home/ COPY entrypoint.bash / RUN chmod u+x /entrypoint.bash ENTRYPOINT ["/entrypoint.bash"]