~razzi/weave

b48072eb939e9a4783a1fc6d2a0c00e581de16e1 — Razzi Abuissa 6 months ago 5eaff20
Add makefile for running latest docker container
1 files changed, 8 insertions(+), 0 deletions(-)

A Makefile
A Makefile => Makefile +8 -0
@@ 0,0 1,8 @@
.PHONY: run

all:
	podman build .

run:
	export IMAGE_ID=$(shell podman images --format "{{.ID}} {{.CreatedAt}}" | sort -rk 2 | head -1 | cut -d ' ' -f 1); \
	docker run -i -t -p 5000:5000 $$IMAGE_ID pipenv run gunicorn server:app -b :5000