20 lines
395 B
Makefile
20 lines
395 B
Makefile
IMAGE_NAME = liquid-rescale-api
|
|
IMAGE_TAG = v0.1
|
|
REGISTY = ghcr.io/xzeldon
|
|
IMAGE = $(IMAGE_NAME):$(IMAGE_TAG)
|
|
PORT = 8321
|
|
|
|
build:
|
|
docker buildx build -t $(IMAGE) .
|
|
|
|
run:
|
|
docker run --name $(IMAGE_NAME) --init --rm -it -p $(PORT):8321 $(IMAGE)
|
|
|
|
run-prod:
|
|
docker compose -f docker-compose.override.yml up -d
|
|
|
|
tag:
|
|
docker tag $(IMAGE) $(REGISTY)/$(IMAGE)
|
|
|
|
push:
|
|
docker push $(REGISTY)/$(IMAGE)
|