17 lines
347 B
Makefile
17 lines
347 B
Makefile
.DEFAULT: run
|
|
.PHONY: run build push
|
|
|
|
run:
|
|
@if [ ! -d ".venv" ]; then \
|
|
python3 -m venv .venv && \
|
|
.venv/bin/pip install -U pip setuptools wheel poetry && \
|
|
.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
|