Commit 3366a04b by xuxingxing

tmp code

parent 477d68ca
Showing with 9 additions and 1 deletions
...@@ -16,4 +16,11 @@ curl --location --request POST 'http://127.0.0.1:5001/predict' \ ...@@ -16,4 +16,11 @@ curl --location --request POST 'http://127.0.0.1:5001/predict' \
"tenantID": 1 "tenantID": 1
}' }'
4.
docker build -t image_v1 .
5.后台运行
docker run -d image_v1 -p 5001:5001 -name image -it /bin/bash
6.注意事项
打包需要的磁盘比较多
\ No newline at end of file
FROM python:3.11.4-slim FROM registry.cn-shenzhen.aliyuncs.com/xcxiaoan/python:3.11.4-slim
RUN rm -rf /admin/app/* RUN rm -rf /admin/app/*
COPY . /admin/app COPY . /admin/app
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment