forked from Nanjiren01/AIChatWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (20 loc) · 813 Bytes
/
Dockerfile
File metadata and controls
29 lines (20 loc) · 813 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
# 需要先在本地执行yarn install && yarn build
# docker build -t nanjiren01/aichat-web:0.8 ../AIChatWeb
# docker push nanjiren01/aichat-web:0.8
# docker tag nanjiren01/aichat-web:0.8 nanjiren01/aichat-web:latest
# docker push nanjiren01/aichat-web:latest
FROM node:18-alpine
WORKDIR /app
COPY ./public ./public
COPY ./node_modules ./node_modules
COPY ./.next/standalone ./
COPY ./.next/static ./.next/static
COPY ./.next/server ./.next/server
# 这里写你的oneapi后端地址 (两种方式二选一,我用的第二种,所以第一种注释掉了)
# 方法一:这里写你的oneapi后端地址
# ENV BASE_URL=http://127.0.0.1:3001
# 方法二:替换到 docker-compose 中使用
# ENV BASE_URL=http://######:###
# ENV BASE_URL=http://aichat-admin:8080
EXPOSE 3000
CMD node /app/server.js;