diff options
author | Jesús <heckyel@hyperbola.info> | 2022-11-27 08:41:18 +0800 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2022-11-27 08:41:18 +0800 |
commit | 4ac35f1d8e68db1ba027c8838bdfad9545a68819 (patch) | |
tree | d38232365197192e20a422311e48b7860918e85a /core/Dockerfile | |
download | microlab-4ac35f1d8e68db1ba027c8838bdfad9545a68819.tar.lz microlab-4ac35f1d8e68db1ba027c8838bdfad9545a68819.tar.xz microlab-4ac35f1d8e68db1ba027c8838bdfad9545a68819.zip |
initial commit
Diffstat (limited to 'core/Dockerfile')
-rw-r--r-- | core/Dockerfile | 35 |
1 files changed, 35 insertions, 0 deletions
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"] |