mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2026-09-13 20:25:53 +00:00
Add missing Dockerfile dependencies
* Install 'xxd', needed for the wrapper curl_ff95 script. * Add curl_ff95 and not curl_ff97 (typo). * Change binary name to 'curl-impersonate'
This commit is contained in:
+10
-7
@@ -42,11 +42,6 @@ RUN cd ${NGHTTP2_VERSION} && \
|
||||
./configure && \
|
||||
make && make install
|
||||
|
||||
# curl tries to load the CA certificates for libnss.
|
||||
# It loads them from /usr/lib/x86_64-linux-gnu/nss/libnssckbi.so,
|
||||
# which is supplied by libnss3 on Debian/Ubuntu
|
||||
RUN apt-get install -y libnss3
|
||||
|
||||
# Download curl and compile it with nss
|
||||
ARG CURL_VERSION=curl-7.81.0
|
||||
RUN curl -o ${CURL_VERSION}.tar.xz https://curl.se/download/${CURL_VERSION}.tar.xz
|
||||
@@ -65,10 +60,18 @@ RUN cd ${CURL_VERSION} && \
|
||||
./configure --with-nss=/build/${NSS_VERSION}/dist/Release --enable-static --disable-shared CFLAGS="-I/build/${NSS_VERSION}/dist/public/nss -I/build/${NSS_VERSION}/dist/Release/include/nspr" --with-nghttp2=/usr/local && \
|
||||
make
|
||||
|
||||
# curl tries to load the CA certificates for libnss.
|
||||
# It loads them from /usr/lib/x86_64-linux-gnu/nss/libnssckbi.so,
|
||||
# which is supplied by libnss3 on Debian/Ubuntu
|
||||
RUN apt-get install -y libnss3
|
||||
|
||||
# 'xxd' is needed for the wrapper curl_ff95 script
|
||||
RUN apt-get install -y xxd
|
||||
|
||||
RUN mkdir out && \
|
||||
cp ${CURL_VERSION}/src/curl out/curl-nss
|
||||
cp ${CURL_VERSION}/src/curl out/curl-impersonate
|
||||
|
||||
# Wrapper script
|
||||
COPY curl_ff97 out/
|
||||
COPY curl_ff95 out/
|
||||
|
||||
RUN chmod +x out/*
|
||||
|
||||
Reference in New Issue
Block a user