diff --git a/download/Dockerfile b/download/Dockerfile index 3d415f4..d2bb397 100644 --- a/download/Dockerfile +++ b/download/Dockerfile @@ -1,12 +1,6 @@ FROM static-tools:build-base-amd64 ARG proxy= -RUN all_proxy=$proxy curl -sL 'https://github.com/gokcehan/lf/releases/download/r31/lf-linux-amd64.tar.gz' | tar xzvf - \ - && ARCH=amd64 /collect.sh lf - -RUN all_proxy=$proxy curl -sL 'https://github.com/gokcehan/lf/releases/download/r31/lf-linux-arm64.tar.gz' | tar xzvf - \ - && ARCH=arm64v8 /collect.sh lf - RUN all_proxy=$proxy curl -sL 'https://github.com/antonmedv/walk/releases/download/v1.7.0/walk_linux_amd64' -o walk \ && ARCH=amd64 /collect.sh walk diff --git a/tools/bash/Dockerfile b/tools/bash/Dockerfile index 228fe46..3dc0566 100644 --- a/tools/bash/Dockerfile +++ b/tools/bash/Dockerfile @@ -2,11 +2,11 @@ ARG arch=amd64 FROM static-tools:build-base-$arch ARG proxy= -RUN apk add ncurses-dev ncurses-static readline-dev readline-static +RUN apk add ncurses-dev ncurses-static readline-dev readline-static gettext # https://ftp.gnu.org/gnu/bash/ RUN curl -sL https://ftp.gnu.org/gnu/bash/bash-5.2.21.tar.gz | tar zxvf - \ && cd bash-* \ && sed -i 's/bash_cv_func_strtoimax = yes/bash_cv_func_strtoimax = no/' m4/strtoimax.m4 \ - && autoconf -f && ./configure --enable-static-link --without-bash-malloc \ + && autoconf -f && ./configure --enable-static-link --without-bash-malloc --prefix=/usr \ && make -j4 && /collect.sh bash diff --git a/tools/curl/Dockerfile b/tools/curl/Dockerfile index 735beb6..1f26889 100644 --- a/tools/curl/Dockerfile +++ b/tools/curl/Dockerfile @@ -2,7 +2,7 @@ ARG arch=amd64 FROM static-tools:build-base-$arch ARG proxy= -RUN apk add openssl-dev nghttp2-dev nghttp2-static libssh2-dev libssh2-static openssl-libs-static zlib-static zlib-dev +RUN apk add openssl-dev nghttp2-dev nghttp2-static libssh2-dev libssh2-static openssl-libs-static zlib-static zlib-dev zstd-static zstd-dev # https://github.com/curl/curl/releases/latest RUN all_proxy=$proxy curl -sL https://github.com/curl/curl/releases/download/curl-8_5_0/curl-8.5.0.tar.xz | tar xJvf - \ diff --git a/tools/lf/Dockerfile b/tools/lf/Dockerfile new file mode 100644 index 0000000..8eb26a7 --- /dev/null +++ b/tools/lf/Dockerfile @@ -0,0 +1,12 @@ +ARG arch=amd64 +FROM static-tools:build-base-$arch +ARG proxy= + +RUN apk add go + +# https://github.com/gokcehan/lf/releases +RUN all_proxy=$proxy curl -sL https://github.com/gokcehan/lf/archive/refs/tags/r32.tar.gz | tar zxvf - + +RUN cd lf-* \ + && sed -i 's/autoquit = false/autoquit = true/g' opts.go \ + && HTTPS_PROXY=$proxy CGO_ENABLED=0 go build && /collect.sh lf