File size: 384 Bytes
7cd2889
c8f4f84
fe85ca5
f719301
 
fe85ca5
 
f719301
7cd2889
0bc09f6
d4d2368
3f01951
d4d2368
b390cf4
f719301
fe85ca5
e04d36d
f719301
fe85ca5
 
 
3f01951
fe85ca5
c8f4f84
fe85ca5
 
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
FROM node:lts-alpine

# 安装 Git
RUN apk add --no-cache git

# 设置工作目录
WORKDIR /app

RUN git clone https://github.com/ltxlong/search_with_ai.git .

# 启用 Corepack
RUN corepack enable

RUN yarn install

# 构建前端
RUN yarn build

# 切换到 deploy 目录
WORKDIR /app/deploy


EXPOSE 3000

# 使用 docker-compose 启动应用
CMD ["docker", "compose", "up", "-d"]