mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2025-08-04 10:52:29 +00:00
Install ca-certificates in the Debian containers
This commit is contained in:
@@ -239,14 +239,14 @@ RUN apk add --no-cache nss
|
|||||||
{{/alpine}}
|
{{/alpine}}
|
||||||
{{#debian}}
|
{{#debian}}
|
||||||
FROM debian:buster-slim
|
FROM debian:buster-slim
|
||||||
|
RUN apt-get update && apt-get install -y ca-certificates
|
||||||
{{#firefox}}
|
{{#firefox}}
|
||||||
# curl tries to load the CA certificates for libnss.
|
# curl tries to load the CA certificates for libnss.
|
||||||
# It loads them from /usr/lib/libnssckbi.so and /usr/lib/libnsspem.so,
|
# It loads them from /usr/lib/libnssckbi.so and /usr/lib/libnsspem.so,
|
||||||
# which are supplied by 'libnss3' and 'nss-plugin-pem' on debian.
|
# which are supplied by 'libnss3' and 'nss-plugin-pem' on debian.
|
||||||
RUN apt-get update && apt-get install -y libnss3 nss-plugin-pem
|
RUN apt-get install -y libnss3 nss-plugin-pem
|
||||||
{{/firefox}}
|
{{/firefox}}
|
||||||
{{/debian}}
|
{{/debian}}
|
||||||
|
|
||||||
# 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}}
|
{{#debian}}
|
||||||
|
@@ -138,7 +138,7 @@ RUN chmod +x out/curl_*
|
|||||||
# Create a final, minimal image with the compiled binaries
|
# Create a final, minimal image with the compiled binaries
|
||||||
# only.
|
# only.
|
||||||
FROM debian:buster-slim
|
FROM debian:buster-slim
|
||||||
|
RUN apt-get update && apt-get install -y ca-certificates
|
||||||
# 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
|
# Update the loader's cache
|
||||||
|
@@ -137,7 +137,6 @@ RUN chmod +x out/curl_*
|
|||||||
# Create a final, minimal image with the compiled binaries
|
# Create a final, minimal image with the compiled binaries
|
||||||
# only.
|
# only.
|
||||||
FROM alpine:3.15.0
|
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
|
||||||
# Wrapper scripts
|
# Wrapper scripts
|
||||||
|
@@ -134,11 +134,11 @@ RUN chmod +x out/curl_*
|
|||||||
# Create a final, minimal image with the compiled binaries
|
# Create a final, minimal image with the compiled binaries
|
||||||
# only.
|
# only.
|
||||||
FROM debian:buster-slim
|
FROM debian:buster-slim
|
||||||
|
RUN apt-get update && apt-get install -y ca-certificates
|
||||||
# curl tries to load the CA certificates for libnss.
|
# curl tries to load the CA certificates for libnss.
|
||||||
# It loads them from /usr/lib/libnssckbi.so and /usr/lib/libnsspem.so,
|
# It loads them from /usr/lib/libnssckbi.so and /usr/lib/libnsspem.so,
|
||||||
# which are supplied by 'libnss3' and 'nss-plugin-pem' on debian.
|
# which are supplied by 'libnss3' and 'nss-plugin-pem' on debian.
|
||||||
RUN apt-get update && apt-get install -y libnss3 nss-plugin-pem
|
RUN 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
|
||||||
# Update the loader's cache
|
# Update the loader's cache
|
||||||
|
@@ -133,7 +133,6 @@ FROM alpine:3.15.0
|
|||||||
# It loads them from /usr/lib/libnssckbi.so,
|
# It loads them from /usr/lib/libnssckbi.so,
|
||||||
# which is supplied by 'nss' on alpine.
|
# which is supplied by 'nss' on alpine.
|
||||||
RUN apk add --no-cache nss
|
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
|
||||||
# Wrapper scripts
|
# Wrapper scripts
|
||||||
|
Reference in New Issue
Block a user