Skip to content

Instantly share code, notes, and snippets.

@fadur
Last active December 20, 2022 11:45
Show Gist options
  • Select an option

  • Save fadur/4277439eb9f12883141f16dcc920e907 to your computer and use it in GitHub Desktop.

Select an option

Save fadur/4277439eb9f12883141f16dcc920e907 to your computer and use it in GitHub Desktop.
Dockerfile
FROM alpine:latest
COPY ./ZscalerRootCertificate-2048-SHA256.crt /usr/local/share/ca-certificates/my-cert.crt
RUN apk add --no-cache \
ca-certificates \
&& update-ca-certificates
# install git and go
RUN apk add --no-cache git go
@fadur

fadur commented Dec 20, 2022

Copy link
Copy Markdown
Author
> [3/4] RUN apk update &&         apk upgrade --available &&         apk add --no-cache         openssl         ca-certificates         curl:
#7 0.940 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
#7 1.141 48BBC7FF507F0000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1889:
#7 1.143 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
#7 1.143 ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.17/main: Permission denied
#7 1.143 WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.17/main: No such file or directory
#7 1.237 48BBC7FF507F0000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1889:
#7 1.238 ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.17/community: Permission denied
#7 1.238 WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.17/community: No such file or directory
#7 1.238 2 errors; 15 distinct packages available
------
executor failed running [/bin/sh -c apk update &&         apk upgrade --available &&         apk add --no-cache         openssl         ca-certificates         curl]: exit code: 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment