This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.8.3.2. Dockerfile 소스
dockerfile
값을 제공하면 이 필드의 콘텐츠가 Dockerfile 이라는 파일로 디스크에 기록됩니다. 이 작업은 다른 입력 소스를 처리한 후 수행되므로 입력 소스 리포지토리에 루트 디렉터리에 Dockerfile 이 포함된 경우 이 콘텐츠가 덮어씁니다.
이 필드는 일반적으로 Docker 전략 빌드에 Dockerfile
을 제공하는 데 사용됩니다.
소스 정의는 BuildConfig
에 있는 spec
섹션의 일부입니다.
source: dockerfile: "FROM centos:7\nRUN yum install -y httpd"
source:
dockerfile: "FROM centos:7\nRUN yum install -y httpd"
- 1
dockerfile
필드에는 빌드할 인라인 Dockerfile이 포함되어 있습니다.