This is config in fly.toml before run flyctl launch
app = "app1"
[env]
ENV1= "test1"
ENV2="test2"
[build.args]
MODE="test"
[[services]]
internal_port = 8080
protocol = "tcp"
.
.
.
This is fly.toml after run launch which also deploy application
flyctl launch --name app1 --org org1 --region reg1 --copy-config --now
app = "app1"
[env]
ENV1= "test1"
ENV2="test2"
[[services]]
internal_port = 8080
protocol = "tcp"
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
.
.
.
Build argument MODE=“test” is missing and cause Docker build failure as it is defined as ARG in Dockerfile
flyctl version
flyctl v0.0.383 linux/amd64 Commit: 16a17b20 BuildDate: 2022-08-25T22:18:50Z