blob: 5211887808002f489caf118b52b1303d80da577a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
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"]
|