From: Shuanglei Tao Date: Sat, 7 Nov 2020 11:15:08 +0000 (+0800) Subject: Dockerfile: update base images X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=9a3d660ec396c0c383ac8ec6efa7c76d5ca604ea;p=ttyd.git Dockerfile: update base images --- diff --git a/Dockerfile b/Dockerfile index 532923f..39f0376 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ -FROM tsl0922/musl-cross -RUN git clone --depth=1 https://github.com/tsl0922/ttyd.git /ttyd \ +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:18.04 @@ -9,6 +10,7 @@ ADD https://github.com/krallin/tini/releases/download/v0.18.0/tini /sbin/tini RUN chmod +x /sbin/tini EXPOSE 7681 +WORKDIR /root ENTRYPOINT ["/sbin/tini", "--"] CMD ["ttyd", "bash"] diff --git a/Dockerfile-alpine b/Dockerfile-alpine index 70feb5c..53266bb 100644 --- a/Dockerfile-alpine +++ b/Dockerfile-alpine @@ -1,12 +1,14 @@ -FROM tsl0922/musl-cross -RUN git clone --depth=1 https://github.com/tsl0922/ttyd.git /ttyd \ +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 alpine:3.10 +FROM alpine:3.12 COPY --from=0 /ttyd/build/ttyd /usr/bin/ttyd RUN apk add --no-cache bash tini EXPOSE 7681 +WORKDIR /root ENTRYPOINT ["/sbin/tini", "--"] CMD ["ttyd", "bash"]