mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-20 04:01:06 -05:00
20 lines
333 B
Makefile
20 lines
333 B
Makefile
NAME=greptweet
|
|
REPO=hendry/$(NAME)
|
|
|
|
.PHONY: start stop build sh
|
|
|
|
all: build
|
|
|
|
build:
|
|
git describe --always > www/version.txt
|
|
docker build -t $(REPO) .
|
|
|
|
start:
|
|
docker run -d --name $(NAME) -v /mnt/2tb/greptweet/:/srv/http/u -v $(PWD)/www:/srv/http/ -p 81:80 $(REPO)
|
|
|
|
stop:
|
|
docker stop $(NAME)
|
|
|
|
sh:
|
|
docker exec -it $(NAME) /bin/sh
|