Skip to content

Commit eab7d8b

Browse files
committed
feat: add make image
1 parent d663339 commit eab7d8b

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.PHONY: image help
2+
3+
# Build Docker image
4+
image:
5+
@echo "Building Docker image $(IMAGE_NAME):$(VERSION)..."
6+
@if [ ! -f VERSION ]; then \
7+
echo "$(VERSION)" > VERSION; \
8+
fi
9+
docker build -t $(IMAGE_NAME):$(VERSION) .
10+
docker tag $(IMAGE_NAME):$(VERSION) $(IMAGE_NAME):latest
11+
@echo "Successfully built image $(IMAGE_NAME):$(VERSION)"
12+
@echo "Also tagged as $(IMAGE_NAME):latest"

0 commit comments

Comments
 (0)