File size: 464 Bytes
74a5742
 
 
 
6bee36c
74a5742
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 构建参数
ARG ARCH

# 使用官方Python运行时作为父镜像
FROM amd64/python:3.10-bullseye

# 设置工作目录
WORKDIR /app

# 将当前目录内容复制到容器的/app中
ADD . /app

RUN pip install --upgrade pip
# 安装程序需要的包
RUN pip install --no-cache-dir -r requirements.txt

# 运行时监听的端口
EXPOSE 7860

# 运行app.py时的命令及其参数
CMD ["uvicorn", "localembedding:app", "--host", "0.0.0.0", "--port", "7860"]