build: make docker-dev works on non-Linux platforms

When running "make docker-dev" on MacOS, build for Linux.
This commit is contained in:
Vincent Bernat
2025-10-02 06:41:10 +02:00
parent a3b6b7bf42
commit 9f5359d6ef

View File

@@ -279,6 +279,7 @@ DOCKER_BUILD_ARGS =
docker: ; $(info $(M) build Docker image) @ ## Build Docker image
$Q docker build -f docker/Dockerfile $(DOCKER_BUILD_ARGS) \
--build-arg VERSION=$(VERSION) -t ghcr.io/akvorado/akvorado:main .
docker-dev: TARGETOS=linux
docker-dev: all ; $(info $(M) build development Docker image) @ ## Build development Docker image
$Q docker build -f docker/Dockerfile.dev $(DOCKER_BUILD_ARGS) \
--build-arg VERSION=$(VERSION) -t ghcr.io/akvorado/akvorado:main .