on
[Docker] 도커 빌드 - 노드 업데이트 에러 해결 (Docker build node...
[Docker] 도커 빌드 - 노드 업데이트 에러 해결 (Docker build node...
728x90
반응형
2021.07.17 - [문제 해결 기록] - [IntelliJ] Gradle 프로젝트 생성 후 실행 에러
도커 빌드 중 node를 업데이트 하는 부분에서 인증 오류가 발생
Error
Err:2 https://deb.nodesource.com/node_14.x bionic Release Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 23.43.165.25 443]
검색해 보니 실시간으로 이슈가 논의 되고 있었다.
이 중 인증 절차를 해제하지 않으면서 작동하도록 도움을 받은 답변을 가져왔다.
728x90
### TEMPORARY WORKAROUND FOR ISSUE https://github.com/nodesource/distributions/issues/1266 RUN apt-get -y update || echo "This is expected to fail." RUN apt-get install -y ca-certificates && apt-get update RUN rm -f /usr/local/share/ca-certificates/certificate.crt # --fresh is needed to remove symlinks to no-longer-present certificates RUN update-ca-certificates --fresh # 위는 추가한 코드 (인증서를 강제로 업데이트 함) # 아래는 기존 코드 (에러 발생 부분) # install the newest node RUN curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - RUN sudo apt-get install -y nodejs RUN sudo apt-get install -y build-essential RUN node -v RUN npm install express --save RUN npm install express-generator -g
728x90
반응형
from http://ktae23.tistory.com/200 by ccl(S) rewrite - 2021-10-01 14:26:40