From 795cfc52762713f5ff2bf25fd7365f1984e632d3 Mon Sep 17 00:00:00 2001 From: Jesse Peterson Date: Tue, 1 Jun 2021 22:33:31 -0700 Subject: [PATCH] Minor docker tweaks --- Dockerfile | 2 ++ Makefile | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) 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