Add deployment

This commit is contained in:
decentral1se
2021-06-16 11:17:32 +02:00
parent 8dab40ab4d
commit 49597980cc
5 changed files with 88 additions and 1 deletions

View File

@ -1,5 +1,5 @@
.DEFAULT: run
.PHONY: run
.PHONY: run build push
run:
@if [ ! -d ".venv" ]; then \
@ -8,3 +8,9 @@ run:
.venv/bin/poetry install; \
fi
.venv/bin/poetry run uvicorn pubspace:app --reload
build:
@docker build -t decentral1se/pubspace .
push: build
@docker push decentral1se/pubspace