Merge pull request #971 from VazeeKevin/tasks/improve-stdlib-docker

stdlib/docker: update #Build to incorporate image from Dockerfile
This commit is contained in:
Sam Alba
2021-09-16 17:50:28 -07:00
committed by GitHub
6 changed files with 53 additions and 49 deletions

View File

@@ -12,13 +12,14 @@ import "alpha.dagger.io/docker"
## docker.#Build
Build a Docker image from source, using included Dockerfile
Build a Docker image from source
### docker.#Build Inputs
| Name | Type | Description |
| ------------- |:-------------: |:-------------: |
|*source* | `dagger.#Artifact` |- |
| Name | Type | Description |
| ------------- |:-------------: |:-------------: |
|*source* | `dagger.#Artifact` |Build context |
|*dockerfile* | `*null \| string` |Dockerfile passed as a string |
### docker.#Build Outputs
@@ -39,21 +40,6 @@ A container image that can run any docker command
_No output._
## docker.#ImageFromDockerfile
Build a Docker image from the provided Dockerfile contents
### docker.#ImageFromDockerfile Inputs
| Name | Type | Description |
| ------------- |:-------------: |:-------------: |
|*dockerfile* | `string` |Dockerfile passed as a string |
|*context* | `dagger.#Artifact` |Build context |
### docker.#ImageFromDockerfile Outputs
_No output._
## docker.#Pull
Pull a docker container