Commit 4895af45 by xuxingxing

tmpcode

parent 3366a04b
Showing with 4 additions and 2 deletions
......@@ -20,7 +20,8 @@ curl --location --request POST 'http://127.0.0.1:5001/predict' \
docker build -t image_v1 .
5.后台运行
docker run -d image_v1 -p 5001:5001 -name image -it /bin/bash
docker run -p 5001:5001 -d -it image_v1:latest bash
6.注意事项
打包需要的磁盘比较多
\ No newline at end of file
......@@ -53,4 +53,4 @@ def classify_image():
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5001)
app.run(port=5001)
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