Update Dockerfile
Browse files- Dockerfile +0 -10
Dockerfile
CHANGED
@@ -8,15 +8,9 @@ WORKDIR /app
|
|
8 |
|
9 |
RUN git clone https://github.com/ltxlong/search_with_ai.git .
|
10 |
|
11 |
-
# 安装项目依赖
|
12 |
-
#COPY package*.json ./
|
13 |
-
#COPY yarn.lock ./
|
14 |
-
#COPY . .
|
15 |
-
|
16 |
# 启用 Corepack
|
17 |
RUN corepack enable
|
18 |
|
19 |
-
#RUN yarn install --frozen-lockfile
|
20 |
RUN yarn install
|
21 |
|
22 |
# 构建前端
|
@@ -25,10 +19,6 @@ RUN yarn build
|
|
25 |
# 切换到 deploy 目录
|
26 |
WORKDIR /app/deploy
|
27 |
|
28 |
-
# 设置环境变量 (从 .env.docker 文件中读取,并根据需要进行修改)
|
29 |
-
#COPY .env.docker .
|
30 |
-
#RUN set -a && source .env.docker && set +a
|
31 |
-
|
32 |
|
33 |
EXPOSE 3000
|
34 |
|
|
|
8 |
|
9 |
RUN git clone https://github.com/ltxlong/search_with_ai.git .
|
10 |
|
|
|
|
|
|
|
|
|
|
|
11 |
# 启用 Corepack
|
12 |
RUN corepack enable
|
13 |
|
|
|
14 |
RUN yarn install
|
15 |
|
16 |
# 构建前端
|
|
|
19 |
# 切换到 deploy 目录
|
20 |
WORKDIR /app/deploy
|
21 |
|
|
|
|
|
|
|
|
|
22 |
|
23 |
EXPOSE 3000
|
24 |
|