forked from tsl0922/ttyd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (30 loc) · 949 Bytes
/
Dockerfile
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
36
37
FROM tsl0922/musl-cross
LABEL maintainer "Shuanglei Tao - [email protected]"
RUN git clone --depth=1 https://github.com/tsl0922/ttyd.git /ttyd \
&& cd /ttyd \
&& ./scripts/cross-build.sh x86_64
FROM ubuntu:18.04
COPY --from=0 /ttyd/build/ttyd /usr/bin/ttyd
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
git \
vim-common \
iputils-ping \
tcptraceroute \
inetutils-telnet \
zsh \
dnsutils \
lolcat \
iftop \
mosh \
&& /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/loket/oh-my-zsh/feature/batch-mode/tools/install.sh)" -s --batch \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
ENV TINI_VERSION v0.18.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /sbin/tini
RUN chmod +x /sbin/tini
EXPOSE 7681
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["ttyd","zsh"]