Skip to content

Commit

Permalink
Install ca-certificates in the Debian containers
Browse files Browse the repository at this point in the history
  • Loading branch information
lwthiker committed Jul 30, 2022
1 parent c90b33a commit a87d3d9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,14 @@ RUN apk add --no-cache nss
{{/alpine}}
{{#debian}}
FROM debian:buster-slim
RUN apt-get update && apt-get install -y ca-certificates
{{#firefox}}
# curl tries to load the CA certificates for libnss.
# It loads them from /usr/lib/libnssckbi.so and /usr/lib/libnsspem.so,
# 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}}
{{/debian}}

# Copy curl-impersonate from the builder image
COPY --from=builder /build/install /usr/local
{{#debian}}
Expand Down
2 changes: 1 addition & 1 deletion chrome/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ RUN chmod +x out/curl_*
# Create a final, minimal image with the compiled binaries
# only.
FROM debian:buster-slim

RUN apt-get update && apt-get install -y ca-certificates
# Copy curl-impersonate from the builder image
COPY --from=builder /build/install /usr/local
# Update the loader's cache
Expand Down
1 change: 0 additions & 1 deletion chrome/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ RUN chmod +x out/curl_*
# Create a final, minimal image with the compiled binaries
# only.
FROM alpine:3.15.0

# Copy curl-impersonate from the builder image
COPY --from=builder /build/install /usr/local
# Wrapper scripts
Expand Down
4 changes: 2 additions & 2 deletions firefox/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ RUN chmod +x out/curl_*
# Create a final, minimal image with the compiled binaries
# only.
FROM debian:buster-slim
RUN apt-get update && apt-get install -y ca-certificates
# curl tries to load the CA certificates for libnss.
# It loads them from /usr/lib/libnssckbi.so and /usr/lib/libnsspem.so,
# 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 --from=builder /build/install /usr/local
# Update the loader's cache
Expand Down
1 change: 0 additions & 1 deletion firefox/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ FROM alpine:3.15.0
# It loads them from /usr/lib/libnssckbi.so,
# which is supplied by 'nss' on alpine.
RUN apk add --no-cache nss

# Copy curl-impersonate from the builder image
COPY --from=builder /build/install /usr/local
# Wrapper scripts
Expand Down

0 comments on commit a87d3d9

Please sign in to comment.