如何在dockerimage中添加/安装cypress

如何在dockerimage中添加/安装cypress,docker,dockerfile,cypress,Docker,Dockerfile,Cypress,如何在我的docker base映像中添加/安装cypress?这是我的baseimage dockerfile文件,我正在安装通用依赖项。 如何安装cypress。我不想通过package.json安装它。我希望它是预安装的 FROM node:lts-stretch-slim RUN apt-get update && apt-get install -y curl wget gnupg RUN apt-get install python3-dev -y RUN curl

如何在我的docker base映像中添加/安装cypress?这是我的baseimage dockerfile文件,我正在安装通用依赖项。 如何安装cypress。我不想通过package.json安装它。我希望它是预安装的

FROM node:lts-stretch-slim
RUN apt-get update && apt-get install -y curl wget gnupg
RUN apt-get install python3-dev -y
RUN curl -O https://bootstrap.pypa.io/get-pip.py
RUN python3 get-pip.py
RUN pip3 install awscli --upgrade
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
RUN apt-key update && apt-get update && apt-get install -y google-chrome-stable 

有docker图像可用,其中已包含cypress

CircleCI有一个用于CI测试

为了方便起见,CircleCI维护了几个Docker映像。这些 图像通常是正式Docker图像的扩展,包括 对CI/CD特别有用的工具。所有这些预构建的图像都是 可在Docker Hub上的CircleCI组织中获得。访问circleci图片 GitHub repo的CircleCI Docker图像源代码。参观 circleci dockerfiles GitHub回购协议适用于 CircleCI Docker图像