Skip to content

curl-impersonate: A special build of curl that can impersonate Chrome & Firefox

Run 'ldconfig' in Docker images

lwthiker8f19c2086836
diff --git a/Dockerfile.template b/Dockerfile.template
index fe4344a..2833dc6 100644
--- a/Dockerfile.template
+++ b/Dockerfile.template
@@ -249,6 +249,8 @@ RUN apt-get update && apt-get install -y libnss3 nss-plugin-pem
# Copy curl-impersonate from the builder image
COPY --from=builder /build/install /usr/local
+# Update the loader's cache
+RUN ldconfig
{{#debian}}
# Copy to /build/out as well for backward compatibility with previous versions.
COPY --from=builder /build/out /build/out
diff --git a/chrome/Dockerfile b/chrome/Dockerfile
index 7d2af1e..7a40abe 100644
--- a/chrome/Dockerfile
+++ b/chrome/Dockerfile
@@ -141,6 +141,8 @@ FROM debian:buster-slim
# Copy curl-impersonate from the builder image
COPY --from=builder /build/install /usr/local
+# Update the loader's cache
+RUN ldconfig
# Copy to /build/out as well for backward compatibility with previous versions.
COPY --from=builder /build/out /build/out
# Wrapper scripts
diff --git a/chrome/Dockerfile.alpine b/chrome/Dockerfile.alpine
index 9188d28..11bb615 100644
--- a/chrome/Dockerfile.alpine
+++ b/chrome/Dockerfile.alpine
@@ -140,5 +140,7 @@ FROM alpine:3.15.0
# Copy curl-impersonate from the builder image
COPY --from=builder /build/install /usr/local
+# Update the loader's cache
+RUN ldconfig
# Wrapper scripts
COPY --from=builder /build/out/curl_* /usr/local/bin/
diff --git a/firefox/Dockerfile b/firefox/Dockerfile
index a6c45e6..ffa450d 100644
--- a/firefox/Dockerfile
+++ b/firefox/Dockerfile
@@ -141,6 +141,8 @@ RUN apt-get update && apt-get install -y libnss3 nss-plugin-pem
# Copy curl-impersonate from the builder image
COPY --from=builder /build/install /usr/local
+# Update the loader's cache
+RUN ldconfig
# Copy to /build/out as well for backward compatibility with previous versions.
COPY --from=builder /build/out /build/out
# Wrapper scripts
diff --git a/firefox/Dockerfile.alpine b/firefox/Dockerfile.alpine
index c1d00ac..438726f 100644
--- a/firefox/Dockerfile.alpine
+++ b/firefox/Dockerfile.alpine
@@ -136,5 +136,7 @@ RUN apk add --no-cache nss
# Copy curl-impersonate from the builder image
COPY --from=builder /build/install /usr/local
+# Update the loader's cache
+RUN ldconfig
# Wrapper scripts
COPY --from=builder /build/out/curl_* /usr/local/bin/