cjvt-valency/dockerfiles/dev-env/Makefile
2019-03-10 22:11:18 +01:00

19 lines
323 B
Makefile

IMAGE_NAME="cjvt-dev-env"
all: build run
build:
docker build . -t $(IMAGE_NAME)
run:
docker run \
-it \
-v /home/${USER}:/home/${USER} \
--user $(shell id -u):$(shell id -g) \
-v /etc/passwd:/etc/passwd \
-v /etc/group:/etc/group \
-v $(MAKE_ROOT):/project \
-w /project \
$(IMAGE_NAME) \
/bin/bash