Add builder options for dockerfile and context to README
This commit is contained in:
20
README.md
20
README.md
@@ -322,6 +322,26 @@ builder:
|
|||||||
|
|
||||||
This is also a good option if you're running MRSK from a CI server that shares architecture with the deployment servers.
|
This is also a good option if you're running MRSK from a CI server that shares architecture with the deployment servers.
|
||||||
|
|
||||||
|
### Using a different Dockerfile or context when building
|
||||||
|
|
||||||
|
If you need to pass a different Dockerfile or context to the build command (e.g. if you're using a monorepo or you have
|
||||||
|
different Dockerfiles), you can do so in the builder options:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Use a different Dockerfile
|
||||||
|
builder:
|
||||||
|
dockerfile: Dockerfile.xyz
|
||||||
|
|
||||||
|
# Set context
|
||||||
|
builder:
|
||||||
|
context: ".."
|
||||||
|
|
||||||
|
# Set context and Dockerfile
|
||||||
|
builder:
|
||||||
|
dockerfile: "../Dockerfile.xyz" # Dockerfile is in the parent directory
|
||||||
|
context: ".."
|
||||||
|
```
|
||||||
|
|
||||||
### Using build secrets for new images
|
### Using build secrets for new images
|
||||||
|
|
||||||
Some images need a secret passed in during build time, like a GITHUB_TOKEN, to give access to private gem repositories. This can be done by having the secret in ENV, then referencing it in the builder configuration:
|
Some images need a secret passed in during build time, like a GITHUB_TOKEN, to give access to private gem repositories. This can be done by having the secret in ENV, then referencing it in the builder configuration:
|
||||||
|
|||||||
Reference in New Issue
Block a user