【问题标题】:How to add/install cypress in dockerimage如何在 docker 镜像中添加/安装 cypress
【发布时间】:2020-01-23 17:56:47
【问题描述】:

如何在我的 docker 基础镜像中添加/安装 cypress?这是我的基础映像 dockerfile 文件,我在其中安装常用依赖项。 如何安装柏树。我不想通过 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 dockerfile cypress


    【解决方案1】:

    其中已经有 cypress 可用的 docker 镜像。

    CircleCI 有一个用于他们的 CI 测试。

    为方便起见,CircleCI 维护了多个 Docker 镜像。这些 镜像通常是官方 Docker 镜像的扩展,包括 对 CI/CD 特别有用的工具。所有这些预先构建的图像都是 在 Docker Hub 上的 CircleCI 组织中可用。访问 circleci-images CircleCI Docker 图像源代码的 GitHub 存储库。访问 用于 Dockerfiles 的 circleci-dockerfiles GitHub 存储库 CircleCI Docker 镜像

    https://circleci.com/docs/2.0/circleci-images/?gclid=Cj0KCQiApaXxBRDNARIsAGFdaB9QO4ZaUXxHzyuRWVc19uzIN0Baz5qd5npQb6rHL3wbup6pFLwKb-4aArzOEALw_wcB

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-11-04
      • 1970-01-01
      • 2023-01-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-15
      相关资源
      最近更新 更多