Files
2024-03-23 11:58:00 +08:00

17 lines
680 B
Docker

FROM vecps:base-v0.1.2
LABEL maintainer="Tosone <i@tosone.cn>"
RUN apk add --no-cache openssl-dev nghttp2-dev nghttp2-static libssh2-dev libssh2-static openssl-libs-static zlib-static
ARG CURL_VERSION=7.82.0
RUN wget https://curl.haxx.se/download/curl-${CURL_VERSION}.tar.gz && \
tar xvfz curl-${CURL_VERSION}.tar.gz && \
rm curl-${CURL_VERSION}.tar.gz
RUN cd curl-${CURL_VERSION} && \
LDFLAGS="-static" PKG_CONFIG="pkg-config --static" ./configure --prefix=/app/curl --disable-shared --enable-static --disable-ldap --enable-ipv6 --enable-unix-sockets --with-ssl --with-libssh2 --without-libpsl && \
make -j4 V=1 LDFLAGS="-static -all-static" && \
make install