flowtodo/Makefile
Javier Feliz 63de1cc642
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
Fix dockerfile
2025-07-16 19:33:47 -04:00

28 lines
687 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)
test-remote-image:
docker pull gitgud.foo/thegrind/flowtodo:latest
docker run --rm -p 8889:8000 gitgud.foo/thegrind/flowtodo:latest