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
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 \
-w $(CURDIR) -e PATH=$(PATH) $(DOCKER_CCACHE_FLAG) \
$(DOCKER_OPTS) \
$(STEAMRT_IMAGE)
-v $(HOME):$(HOME) -v $(SRC):$(SRC) -v $(OBJ):$(OBJ) -w $(OBJ) \
$(DOCKER_OPTS) $(STEAMRT_IMAGE)
STEAMRT_NAME ?= soldier
ifeq ($(STEAMRT_NAME),soldier)