Linux Cypress强制远程下载
在Dockerfile中,我有一个非常简单的命令Linux Cypress强制远程下载,linux,docker,cypress,Linux,Docker,Cypress,在Dockerfile中,我有一个非常简单的命令 RUN CYPRESS_INSTALL_BINARY=/root/Repos/fis-javascript-course/hospitalapp/cypress.6.9.1.zip npm i cypress 运行docker compose后,Cypress将强制远程加载 URL: https://download.cypress.io/desktop//root/Repos/fis-javascript-course/hospitalapp
RUN CYPRESS_INSTALL_BINARY=/root/Repos/fis-javascript-course/hospitalapp/cypress.6.9.1.zip npm i cypress
运行docker compose后,Cypress将强制远程加载
URL: https://download.cypress.io/desktop//root/Repos/fis-javascript-course/hospitalapp/cypress.6.9.1.zip?platform=linux&arch=x64
Error: tunneling socket could not be established, statusCode=403
操作系统是Linux(Rhel7)。二进制路径正确,文件确实存在于该位置
Step 11/31 : RUN ls -al /app/hospitalapp
---> Running in 742da952bf44
total 226780
drwxr-xr-x 2 root root 140 Jun 3 09:21 .
drwxr-xr-x 1 root root 4096 Jun 3 09:21 ..
-rw-r--r-- 1 root root 704 Jun 2 08:03 CentOS-Linux-BaseOS.repo
-rw-r--r-- 1 root root 2861 Jun 3 09:21 Dockerfile
-rw-r--r-- 1 root root 1904 Jun 3 07:32 Dockerfile_old
-rw-r--r-- 1 root root 232195464 Jun 2 11:39 cypress.6.9.1.zip
-rw------- 1 root root 999 Jun 2 15:52 npmrc
-rwxr-xr-x 1 root root 1664 Jun 2 08:18 startHospital.sh
也许有人知道问题出在哪里