提交
This commit is contained in:
18
embeddings/Dockerfile
Normal file
18
embeddings/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
# 使用官方Python运行时作为父镜像
|
||||
FROM registry.cn-hangzhou.aliyuncs.com/ripper/python:3.9-slim
|
||||
|
||||
# 设置工作目录
|
||||
WORKDIR /app
|
||||
|
||||
# 将当前目录内容复制到容器的/app中
|
||||
ADD . /app
|
||||
|
||||
RUN pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
# 安装程序需要的包
|
||||
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
|
||||
# 运行时监听的端口
|
||||
EXPOSE 6008
|
||||
|
||||
# 运行app.py时的命令及其参数
|
||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "6008"]
|
||||
Reference in New Issue
Block a user