Docker compilation errors with alpine:3.13.0 as tests

Hi Friends,
I am able to compile my docker build with alphine 3.12 release, but when I am using 3.13 onwards, I a getting following errors, Any help is really appreciated.
Thanks

Step 9/10 : RUN apk update && apk add --no-cache cmake make g++ git openssl-dev ca-certificates wget && update-ca-certificates && apk add --update openssl && wget https://github.com/google/googletest/archive/refs/tags/${GOOGLE_TEST_VERSION}.zip && unzip ${GOOGLE_TEST_VERSION}.zip && cd googletest-${GOOGLE_TEST_VERSION} && cmake . && make && make install && cd … && wget --no-check-certificate https://github.com/eclipse/paho.mqtt.c/archive/refs/tags/v${PAHO_MQTT_C_VERSION}.zip && unzip v${PAHO_MQTT_C_VERSION}.zip && cd paho.mqtt.c-${PAHO_MQTT_C_VERSION} && cmake -Bbuild -H. -DPAHO_ENABLE_TESTING=OFF -DPAHO_BUILD_STATIC=ON -DPAHO_WITH_SSL=ON -DPAHO_HIGH_PERFORMANCE=ON && cmake --build build/ --target install && cd … && wget --no-check-certificate https://github.com/eclipse/paho.mqtt.cpp/archive/refs/tags/v${PAHO_MQTT_CPP_VERSION}.zip && unzip v${PAHO_MQTT_CPP_VERSION}.zip && cd paho.mqtt.cpp-${PAHO_MQTT_CPP_VERSION} && cmake -Bbuild -H. -DPAHO_BUILD_STATIC=ON -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_SAMPLES=TRUE && cmake --build build/ --target install && ln -s /usr/local/lib64/libgmock.a /usr/local/lib/libgmock.a && ln -s /usr/local/lib64/libpaho-mqtt3a.a /usr/local/lib/libpaho-mqtt3a.a && ln -s /usr/local/lib64/libpaho-mqttpp3.a /usr/local/lib/libpaho-mqttpp3.a && cd … && mkdir ${BUILD_FOLDER} && cd ${BUILD_FOLDER} && cmake … && make
—> Running in 1f08026916be
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
139960549735240:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1914:
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.13/main: Permission denied
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/main: No such file or directory
139960549735240:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1914:
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.13/community: Permission denied
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/community: No such file or directory
2 errors; 14 distinct packages available