Configuration File

Build

The [build] section in your deckrun.toml file allows you to customize how Deckrun builds your application's Docker image.

While Deckrun can automatically detect and build many applications without any configuration, this section provides you with more control over the build process.

# Configuration file with a build section
app = 'myapp'

[build]
  dockerfile = 'Dockerfile.custom'
  [build.args]
    NODE_VERSION = '18'

build.dockerfile

By default, Deckrun will look for a Dockerfile in the root of your project. If you want to use a different Dockerfile, you can specify its path using the dockerfile field.

[build]
  dockerfile = 'path/to/your/Dockerfile.custom'

build.args

The [build.args] section allows you to pass build-time variables to your Dockerfile. These are the arguments that you would typically pass using the --build-arg flag with the docker build command.

For example, if your Dockerfile uses an ARG instruction to specify the Node.js version:

ARG NODE_VERSION=16
FROM node:${NODE_VERSION}-alpine
...

You can set the NODE_VERSION in your deckrun.toml file like this:

[build]
  [build.args]
    NODE_VERSION = '18'
Previous
App