astro dev build

The behavior and format of this command are the same for both Astro and Astro Private Cloud.

Build your Astro project into a Docker image without starting a local Airflow environment. Use this command to verify that your project builds successfully before deployment or when you need only the image build step.

This command is not available in standalone mode.

Usage

$astro dev build

Options

OptionDescriptionPossible Values
--build-secretsRun docker build --secret to mount a secret value to your Docker image.id=<your-secret-id>, src=<path-to-secret> . See Docker documentation.
-i, --image-nameTag a pre-built custom image as the project image.A valid Docker image name
--no-cacheDo not use cache when building your Astro project into a Docker image.None

Examples

$$ astro dev build
$# Build the project image
$
$$ astro dev build --no-cache
$# Build the project image without using Docker cache
$
$$ astro dev build --image-name my-custom-image:latest
$# Tag a pre-built image as the project image