Fieldnotes app backend

Makefile 441B

12345678910111213141516171819202122232425
  1. build: bin/server
  2. docker build \
  3. --build-arg "HTTP_PROXY=$(HTTP_PROXY)" \
  4. --build-arg "HTTPS_PROXY=$(HTTPS_PROXY)" \
  5. --build-arg "http_proxy=$(http_proxy)" \
  6. --build-arg "https_proxy=$(https_proxy)" \
  7. -t fieldnotes-server \
  8. .
  9. run:
  10. docker run \
  11. --rm -it \
  12. -p "3000:3000" \
  13. fieldnotes-server:latest
  14. bin/server:
  15. CGO_ENABLED=0 go build -o ./bin/server ./
  16. server: bin/server
  17. ./bin/server
  18. watch:
  19. modd
  20. .PHONY: bin/server