Update Docker #Build to incorporate image from Dockerfile

Signed-off-by: Kevin Poirot <kevin@vazee.fr>
This commit is contained in:
Kevin Poirot
2021-09-14 09:54:09 +02:00
parent 4d45e269e0
commit 3e14920062
6 changed files with 21 additions and 45 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