From: Shuanglei Tao Date: Fri, 31 Jul 2020 00:49:33 +0000 (+0800) Subject: update Dockerfile X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=7fc63b9fc33b8fac4ea4db44a879c3dd5c07d2ca;p=ttyd.git update Dockerfile --- diff --git a/Dockerfile b/Dockerfile index 5f3b2c2..532923f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM tsl0922/musl-cross RUN git clone --depth=1 https://github.com/tsl0922/ttyd.git /ttyd \ - && cd /ttyd && ./scripts/cross-build.sh x86_64 + && cd /ttyd && env BUILD_TARGET=x86_64 WITH_SSL=true ./scripts/cross-build.sh FROM ubuntu:18.04 COPY --from=0 /ttyd/build/ttyd /usr/bin/ttyd diff --git a/Dockerfile-alpine b/Dockerfile-alpine index 7f20f0d..70feb5c 100644 --- a/Dockerfile-alpine +++ b/Dockerfile-alpine @@ -1,6 +1,6 @@ FROM tsl0922/musl-cross RUN git clone --depth=1 https://github.com/tsl0922/ttyd.git /ttyd \ - && cd /ttyd && ./scripts/cross-build.sh x86_64 + && cd /ttyd && env BUILD_TARGET=x86_64 WITH_SSL=true ./scripts/cross-build.sh FROM alpine:3.10 COPY --from=0 /ttyd/build/ttyd /usr/bin/ttyd