microblog.pub/Makefile

20 lines
591 B
Makefile
Raw Normal View History

2022-07-18 18:44:55 +00:00
SHELL := /bin/bash
PWD=$(shell pwd)
2022-07-28 18:38:54 +00:00
.PHONY: build
build:
docker build -t microblogpub/microblogpub .
2022-07-18 18:44:55 +00:00
.PHONY: config
config:
# Run and remove instantly
-docker run --rm -it --volume `pwd`/data:/app/data microblogpub/microblogpub inv configuration-wizard
2022-07-28 18:28:13 +00:00
.PHONY: update
update:
2022-08-29 17:44:02 +00:00
-docker run --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv update --no-update-deps
2022-08-19 12:58:59 +00:00
.PHONY: prune-old-data
2022-08-19 13:02:57 +00:00
prune-old-data:
2022-08-19 12:58:59 +00:00
-docker run --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv prune-old-data