我正在尝试使用Bitbucket Pipelines运行Web服务器 .
到目前为止,这是我的bitbucket-pipelines.yml:
image: php:latest
pipelines:
default:
- step:
caches:
- composer
script:
- apt-get update && apt-get install -y unzip
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- vendor/bin/behat --colors --format=pretty --out=std
services:
- selenium
- nginx
definitions:
services:
selenium:
hostname: selenium
image: selenium/standalone-chrome:latest
nginx:
image: nginx
现在,如果我去http://localhost,我可以看到默认的Nginx页面 .
如何在存储库中提供某些文件而不是那些?是否可以将文件复制到Nginx容器?