mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2025-08-04 10:52:29 +00:00
Run ldconfig in Debian Docker images only
This commit is contained in:
@@ -249,9 +249,9 @@ RUN apt-get update && apt-get install -y libnss3 nss-plugin-pem
|
|||||||
|
|
||||||
# Copy curl-impersonate from the builder image
|
# Copy curl-impersonate from the builder image
|
||||||
COPY --from=builder /build/install /usr/local
|
COPY --from=builder /build/install /usr/local
|
||||||
|
{{#debian}}
|
||||||
# Update the loader's cache
|
# Update the loader's cache
|
||||||
RUN ldconfig
|
RUN ldconfig
|
||||||
{{#debian}}
|
|
||||||
# Copy to /build/out as well for backward compatibility with previous versions.
|
# Copy to /build/out as well for backward compatibility with previous versions.
|
||||||
COPY --from=builder /build/out /build/out
|
COPY --from=builder /build/out /build/out
|
||||||
{{/debian}}
|
{{/debian}}
|
||||||
|
@@ -140,7 +140,5 @@ FROM alpine:3.15.0
|
|||||||
|
|
||||||
# Copy curl-impersonate from the builder image
|
# Copy curl-impersonate from the builder image
|
||||||
COPY --from=builder /build/install /usr/local
|
COPY --from=builder /build/install /usr/local
|
||||||
# Update the loader's cache
|
|
||||||
RUN ldconfig
|
|
||||||
# Wrapper scripts
|
# Wrapper scripts
|
||||||
COPY --from=builder /build/out/curl_* /usr/local/bin/
|
COPY --from=builder /build/out/curl_* /usr/local/bin/
|
||||||
|
@@ -136,7 +136,5 @@ RUN apk add --no-cache nss
|
|||||||
|
|
||||||
# Copy curl-impersonate from the builder image
|
# Copy curl-impersonate from the builder image
|
||||||
COPY --from=builder /build/install /usr/local
|
COPY --from=builder /build/install /usr/local
|
||||||
# Update the loader's cache
|
|
||||||
RUN ldconfig
|
|
||||||
# Wrapper scripts
|
# Wrapper scripts
|
||||||
COPY --from=builder /build/out/curl_* /usr/local/bin/
|
COPY --from=builder /build/out/curl_* /usr/local/bin/
|
||||||
|
Reference in New Issue
Block a user