How to enable / setup Dependency Caches for apt-get on BitBucket Pipelines

前端 未结 3 1221
时光说笑
时光说笑 2021-01-01 15:09

I am using the following code in my bitbucket-pipelines.yml files to remotely deply code to a staging server.

image: php:7.1.1

pipelines:
  def         


        
3条回答
  •  鱼传尺愫
    2021-01-01 15:39

    This is a typical scenario where you should use your own Docker image instead of one of the ones provided by Atlassian. (Or search for a Docker image which provides exactly this.)

    In your simple case, this Dockerfile should be enough:

    FROM php:7.1.1
    
    RUN apt-get update && \
        apt-get install -y openssh-client
    

    Then, create a DockerHub account, publish the image and reference it in bitbucket-pipelines.yml.

提交回复
热议问题