Makefile to write in the version.txt

This commit is contained in:
Kai Hendry
2014-12-06 22:11:14 +08:00
parent 18cdf60aae
commit 5dca464366
2 changed files with 6 additions and 2 deletions

View File

@@ -17,5 +17,3 @@ EXPOSE 80
# We use supervisord to keep the two processes we need going
CMD supervisord -n -c /etc/supervisord.conf
# sudo docker run -v /srv/www/greptweet.com:/srv/http/u -p 80:80 -t -i greptweet

6
Makefile Normal file
View File

@@ -0,0 +1,6 @@
build:
git describe --always > www/version.txt
docker build -t greptweet .
test:
docker run -v /srv/www/greptweet.com:/srv/http/u -p 81:80 -t -i greptweet