mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2025-08-04 19:02:28 +00:00
Run 'ldconfig' in Docker images
Run ldconfig to update the loader's cache. This is necessary specifically on the Debian image since we put .so files in /usr/local.
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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/
|
||||
|
@@ -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
|
||||
|
@@ -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/
|
||||
|
Reference in New Issue
Block a user