To ensure the build arguments are passed correctly through docker compose, update your docker-compose.yml file:
services:
app:
build:
context: .
args:
- HTTP_PROXY=[http://10.0.0.1:8080](http://10.0.0.1:8080)
- HTTPS_PROXY=[http://10.0.0.1:8080](http://10.0.0.1:8080)
environment:
- NO_PROXY=localhost,127.0.0.1Run the build with BuildKit enabled:
export DOCKER_BUILDKIT=1 docker compose build --no-cache --progress=plain