diff --git a/Dockerfile b/Dockerfile index 5b385f0..521e944 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,4 +4,6 @@ COPY nanomdm-linux-amd64 /nanomdm EXPOSE 9000 +VOLUME ["/db"] + ENTRYPOINT ["/nanomdm"] diff --git a/Makefile b/Makefile index ee00485..00031c5 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,8 @@ NANOMDM=\ my: nanomdm-$(OSARCH) +docker: nanomdm-linux-amd64 + $(NANOMDM): cmd/nanomdm GOOS=$(word 2,$(subst -, ,$@)) GOARCH=$(word 3,$(subst -, ,$(subst .exe,,$@))) go build $(LDFLAGS) -o $@ ./$< @@ -28,4 +30,4 @@ release: $(foreach bin,$(NANOMDM),$(subst .exe,,$(bin))-$(VERSION).zip) test: go test -v -cover -race ./... -.PHONY: my $(NANOMDM) clean release test +.PHONY: my docker $(NANOMDM) clean release test