Step one in getting to Alpine

This commit is contained in:
Kai Hendry
2015-10-01 21:54:48 +08:00
parent 4e53ff14f1
commit b00e31138f
18 changed files with 53 additions and 9397 deletions

View File

@@ -1,6 +1,19 @@
NAME=greptweet
REPO=hendry/$(NAME)
.PHONY: start stop build sh
all: build
build:
git describe --always > www/version.txt
docker build -t greptweet .
docker build -t $(REPO) .
test:
docker run -v /srv/www/greptweet.com:/srv/http/u -p 81:80 -t -i greptweet
start:
docker run -d --name $(NAME) -v /srv/www/greptweet.com:/srv/http/u -p 81:80 $(REPO)
stop:
docker stop $(NAME)
sh:
docker exec -it $(NAME) /bin/sh