17 lines
428 B
Makefile
17 lines
428 B
Makefile
WORKDIR = $(shell pwd)
|
|
PROJECT_NAME = osdict_front
|
|
DOCKER_HUB_ADDR = registry.cn-beijing.aliyuncs.com/cypress-boat
|
|
IMAGE_REPOSITORY = ${DOCKER_HUB_ADDR}/${PROJECT_NAME}
|
|
TAG ?= latest
|
|
IMAGE_REPOSITORY_TAG = ${IMAGE_REPOSITORY}:${TAG}
|
|
|
|
.PHONY: image publish
|
|
|
|
image:
|
|
docker build --platform=amd64 -t ${IMAGE_REPOSITORY_TAG} .
|
|
|
|
publish:
|
|
@echo "push ${IMAGE_REPOSITORY_TAG}"
|
|
docker push ${IMAGE_REPOSITORY_TAG}
|
|
|
|
all: image publish |