diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-10-09 10:23:35 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-10-09 10:23:35 +0000 |
commit | 29fcdabc71b54182909fd9341dc002784945e1cd (patch) | |
tree | 31aae388cab95a9452acda7a987cc232a47b6707 /Dockerfile | |
parent | Adding upstream version 1.6.3. (diff) | |
download | ttyd-29fcdabc71b54182909fd9341dc002784945e1cd.tar.xz ttyd-29fcdabc71b54182909fd9341dc002784945e1cd.zip |
Adding upstream version 1.6.3+20210924.upstream/1.6.3+20210924
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -1,16 +1,11 @@ -FROM ubuntu:18.04 -RUN apt-get update && apt-get install -y autoconf automake curl cmake git libtool make \ - && git clone --depth=1 https://github.com/tsl0922/ttyd.git /ttyd \ - && cd /ttyd && env BUILD_TARGET=x86_64 WITH_SSL=true ./scripts/cross-build.sh +FROM ubuntu:20.04 -FROM ubuntu:18.04 -COPY --from=0 /ttyd/build/ttyd /usr/bin/ttyd - -ADD https://github.com/krallin/tini/releases/download/v0.18.0/tini /sbin/tini -RUN chmod +x /sbin/tini +ARG TARGETARCH +COPY ./dist/${TARGETARCH}/ttyd /usr/bin/ttyd +RUN apt-get update && apt-get install -y --no-install-recommends tini && rm -rf /var/lib/apt/lists/* EXPOSE 7681 WORKDIR /root -ENTRYPOINT ["/sbin/tini", "--"] +ENTRYPOINT ["/usr/bin/tini", "--"] CMD ["ttyd", "bash"] |