flowtodo/Makefile
Javier Feliz 38108efd9d
Some checks failed
linter / quality (push) Successful in 3m11s
tests / ci (push) Successful in 11m59s
Build & Push Docker Image to Registry / build (release) Has been cancelled
Build image action
2025-07-16 18:38:20 -04:00

24 lines
552 B
Makefile

IMAGE_NAME = flowtodo
CONTAINER_NAME = flowtodo-web
PORT = 8889
VERSION = "latest"
.PHONY: build run rebuild
# Build the Docker image
build:
npm run build
docker build -t $(IMAGE_NAME) .
# Run the container
run:
docker run -it --rm -p $(PORT):8000 -e APP_DEBUG=true --name $(CONTAINER_NAME) $(IMAGE_NAME)
# Rebuild (force rebuild without cache)
rebuild:
docker build --no-cache -t $(IMAGE_NAME) .
docker-publish:
docker image tag flowtodo:latest gitgud.foo/thegrind/flowtodo:$(VERSION)
docker push gitgud.foo/thegrind/flowtodo:$(VERSION)