OSDN Git Service

Fix #36822: Build a Docker image for Shogi-server
[shogi-server/shogi-server.git] / Makefile
index c46701c..affadf1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,12 @@ stop-daemon:
 test-time-run: 
        ruby -r sample/test_time.rb ./shogi-server --floodgate-games floodgate-900-0,floodgate-3600-0 hoge 4000 
 
 test-time-run: 
        ruby -r sample/test_time.rb ./shogi-server --floodgate-games floodgate-900-0,floodgate-3600-0 hoge 4000 
 
+.PHONY: image-build
+image-build: .image-build
+.image-build: Dockerfile
+       docker build -t shogi-server/shogi-server:latest -f $< .
+       docker images -q shogi-server/shogi-server:latest > $@
+
 .PHONY: clean
 clean:
 .PHONY: clean
 clean:
-       -rm -rf doc
+       -rm -rf doc .image-*