forked from langgenius/dify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (28 loc) · 871 Bytes
/
Makefile
File metadata and controls
34 lines (28 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Variables
DOCKER_REGISTRY=langgenius
WEB_IMAGE=$(DOCKER_REGISTRY)/dify-web
API_IMAGE=$(DOCKER_REGISTRY)/dify-api
VERSION=latest
# Build Docker images
build-web:
@echo "Building web Docker image with no-cache..."
cd docker && docker compose build --no-cache web
@echo "Web Docker image built successfully"
build-api:
@echo "Building API Docker image with no-cache..."
cd docker && docker compose build --no-cache api worker worker_beat
@echo "API Docker image built successfully"
# Build all images
build: build-web build-api
# Start services
up:
@echo "Starting Dify services..."
cd docker && docker compose up -d
@echo "Dify services started successfully"
# Stop services
down:
@echo "Stopping Dify services..."
cd docker && docker compose down
@echo "Dify services stopped successfully"
# Phony targets
.PHONY: build-web build-api build-all up down