mirror of
https://github.com/ENSL/ensl-plugin.git
synced 2025-02-01 13:11:02 +00:00
Update dockerfile
This commit is contained in:
parent
38c857692f
commit
5fca50a9d4
1 changed files with 4 additions and 1 deletions
5
Makefile
5
Makefile
|
@ -2,6 +2,8 @@
|
|||
PROJECT ?= ensl-plugin
|
||||
TAG ?= latest
|
||||
|
||||
.PHONY: all test clean build
|
||||
|
||||
ifdef REGISTRY
|
||||
IMAGE=$(REGISTRY)/$(PROJECT):$(TAG)
|
||||
else
|
||||
|
@ -15,10 +17,11 @@ all:
|
|||
@echo " * push - push $(IMAGE)"
|
||||
@echo " * test - build and test $(IMAGE)"
|
||||
|
||||
build: Dockerfile
|
||||
build:
|
||||
docker build . -t $(IMAGE)
|
||||
|
||||
run: build
|
||||
mkdir -p build
|
||||
docker run -v $(shell pwd)/build/:/var/build -ti $(IMAGE)
|
||||
|
||||
pull:
|
||||
|
|
Loading…
Reference in a new issue