build: Only mount what's required inside docker.

This commit is contained in:
Rémi Bernon 2020-10-16 13:13:38 +02:00 committed by Andrew Eikum
parent 4d63345180
commit ee04127950

View file

@ -52,10 +52,8 @@ else
endif endif
DOCKER_BASE = docker run --rm -e HOME -e USER -e USERID=$(shell id -u) -u $(shell id -u):$(shell id -g) \ DOCKER_BASE = docker run --rm -e HOME -e USER -e USERID=$(shell id -u) -u $(shell id -u):$(shell id -g) \
-v $(HOME):$(HOME) -v /tmp:/tmp \ -v $(HOME):$(HOME) -v $(SRC):$(SRC) -v $(OBJ):$(OBJ) -w $(OBJ) \
-w $(CURDIR) -e PATH=$(PATH) $(DOCKER_CCACHE_FLAG) \ $(DOCKER_OPTS) $(STEAMRT_IMAGE)
$(DOCKER_OPTS) \
$(STEAMRT_IMAGE)
STEAMRT_NAME ?= soldier STEAMRT_NAME ?= soldier
ifeq ($(STEAMRT_NAME),soldier) ifeq ($(STEAMRT_NAME),soldier)