Skip to content

Commit

Permalink
Minor docker tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepeterson committed Jun 2, 2021
1 parent b31fe72 commit 795cfc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ COPY nanomdm-linux-amd64 /nanomdm

EXPOSE 9000

VOLUME ["/db"]

ENTRYPOINT ["/nanomdm"]
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@ ./$<

Expand All @@ -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

0 comments on commit 795cfc5

Please sign in to comment.