From 4ac35f1d8e68db1ba027c8838bdfad9545a68819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Sun, 27 Nov 2022 08:41:18 +0800 Subject: initial commit --- core/Dockerfile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 core/Dockerfile (limited to 'core/Dockerfile') diff --git a/core/Dockerfile b/core/Dockerfile new file mode 100644 index 0000000..d0e9aa6 --- /dev/null +++ b/core/Dockerfile @@ -0,0 +1,35 @@ +FROM docker.io/rusian/hyperbola:0.4.1 +LABEL MAINTAINER="heckyel@hyperbola.info" + +ARG pkgname=tmate +ARG pkgver=2.4.0 + +RUN pacman -Syu --noconfirm && \ +pacman -S --noconfirm \ +procps-ng \ +net-tools \ +bash-completion \ +git \ +nano \ +wget && \ +pacman -Scc --noconfirm + +RUN wget --quiet https://github.com/tmate-io/tmate/releases/download/${pkgver}/${pkgname}-${pkgver}-static-linux-amd64.tar.xz -O /tmp/${pkgname}-${pkgver}.tar.xz && \ +wget --quiet 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" && \ +rm -rf "$HOME/.wget-hsts" + +WORKDIR /home/ + +COPY entrypoint.bash / +RUN chmod u+x /entrypoint.bash + +ENTRYPOINT ["/entrypoint.bash"] -- cgit v1.2.3