|
|
|
DOCKER_REGISTRY=langgenius |
|
WEB_IMAGE=$(DOCKER_REGISTRY)/dify-web |
|
API_IMAGE=$(DOCKER_REGISTRY)/dify-api |
|
VERSION=latest |
|
|
|
|
|
build-web: |
|
@echo "Building web Docker image: $(WEB_IMAGE):$(VERSION)..." |
|
docker build -t $(WEB_IMAGE):$(VERSION) ./web |
|
@echo "Web Docker image built successfully: $(WEB_IMAGE):$(VERSION)" |
|
|
|
build-api: |
|
@echo "Building API Docker image: $(API_IMAGE):$(VERSION)..." |
|
docker build -t $(API_IMAGE):$(VERSION) ./api |
|
@echo "API Docker image built successfully: $(API_IMAGE):$(VERSION)" |
|
|
|
|
|
push-web: |
|
@echo "Pushing web Docker image: $(WEB_IMAGE):$(VERSION)..." |
|
docker push $(WEB_IMAGE):$(VERSION) |
|
@echo "Web Docker image pushed successfully: $(WEB_IMAGE):$(VERSION)" |
|
|
|
push-api: |
|
@echo "Pushing API Docker image: $(API_IMAGE):$(VERSION)..." |
|
docker push $(API_IMAGE):$(VERSION) |
|
@echo "API Docker image pushed successfully: $(API_IMAGE):$(VERSION)" |
|
|
|
|
|
build-all: build-web build-api |
|
|
|
|
|
push-all: push-web push-api |
|
|
|
build-push-api: build-api push-api |
|
build-push-web: build-web push-web |
|
|
|
|
|
build-push-all: build-all push-all |
|
@echo "All Docker images have been built and pushed." |
|
|
|
|
|
.PHONY: build-web build-api push-web push-api build-all push-all build-push-all |
|
|