forked from trypromptly/LLMStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 771 Bytes
/
Makefile
File metadata and controls
34 lines (24 loc) · 771 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
# Makefile
# Define the directories containing the Dockerfiles
DOCKER_API_DIR := docker/api
DOCKER_APP_DIR := docker/app
# Define the image names
API_IMAGE_NAME := llmstack-api
APP_IMAGE_NAME := llmstack-app
# Define the build targets
.PHONY: all app client
all: app client
client:
@echo "Building client..."
cd llmstack/client && npm run build && cd ../../
api:
@echo "Building client..."
cd llmstack/client && npm run build && cd ../../
@echo "Building api image..."
docker build -t $(API_IMAGE_NAME) -f $(DOCKER_API_DIR)/Dockerfile .
api-image:
@echo "Building api image..."
docker build -t $(API_IMAGE_NAME) -f $(DOCKER_API_DIR)/Dockerfile .
app:
@echo "Building app image..."
docker build -t $(APP_IMAGE_NAME) -f $(DOCKER_APP_DIR)/Dockerfile .