flowtodo/Makefile
Javier Feliz 932ebf4c27
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run
Fix skill issues
2025-07-15 22:50:35 -04:00

24 lines
573 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) . -f docker/Dockerfile
# 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)