Makefile 247 B

12345678910111213141516171819
  1. DIST=dist.tar.gz
  2. all: $(DIST)
  3. $(DIST):
  4. docker build --rm -t sampleapp-build -f Dockerfile.build .
  5. docker run sampleapp-build > $(DIST)
  6. dist: $(DIST)
  7. docker build -t sampleapp -f Dockerfile.dist .
  8. clean:
  9. rm $(DIST)
  10. .PHONY: clean dist