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