Skip to main content

Docker build command

Overview

The aetheria docker build command builds production ready Docker images.

Usage

aetheria docker build [arguments] [flags]

Arguments

ArgumentDescription
projectThe project to build, can be frontend or backend
imageThe image to build, can be one of the available docker presets

Flags

FlagDescription
-h, --helpHelp for the aetheria docker build command.
-d, --debugEnable debug mode.
-f <value>, --project_folder <value>The folder where the project to build is located.
-v <value>, --version <value>The version to build. We strongly suggest to use semantic versioning number but any value is accepted, note that this will be placed before the -<preset> part of the docker image tag.
Defaults to 1.0.0
--build, --no-buildWhether to build the project source code before creating the image.
Default to true.
--publish, --no-publishWhether to publish the image to the registry. Note that the images are named as overridesoft/aetheria-<frontend or headless> meaning the default publish command will try to push to the official Aetheria's registry.
By default the publishing is always skipped for the frontend project.
Default to true.

Examples

Build the frontend base image where the frontend is located at ../frontend/
aetheria docker build frontend base -f ../frontend/
Build and publish the backend base image with version 1.0.1 where the headless backend is located at ../headless/
aetheria docker build backend base -v 1.0.1 -f ../headless/