mirror of
https://github.com/xzeldon/emoji-captcha-api.git
synced 2024-12-25 06:25:47 +00:00
17 lines
337 B
Makefile
17 lines
337 B
Makefile
IMAGE_NAME = emoji-captcha-api
|
|
IMAGE_TAG = latest
|
|
REGISTY = ghcr.io/xzeldon
|
|
IMAGE = $(IMAGE_NAME):$(IMAGE_TAG)
|
|
PORT = 8080
|
|
|
|
build:
|
|
docker buildx build -t $(IMAGE) .
|
|
|
|
run:
|
|
docker run --name $(IMAGE_NAME) --init --rm -it -p $(PORT):8080 $(IMAGE)
|
|
|
|
tag:
|
|
docker tag $(IMAGE) $(REGISTY)/$(IMAGE_NAME)
|
|
|
|
push:
|
|
docker push $(REGISTY)/$(IMAGE)
|