Commit 4f0eab6c by xuxingxing

add dockerfile

parent 47c6ed97
Showing with 13 additions and 2 deletions
...@@ -14,4 +14,6 @@ curl --location --request POST 'http://127.0.0.1:5001/predict' \ ...@@ -14,4 +14,6 @@ curl --location --request POST 'http://127.0.0.1:5001/predict' \
--data-raw '{ --data-raw '{
"url": "https://dianlv-res.oss-cn-shenzhen.aliyuncs.com/exportFiles/1_265261960876529885.jpg", "url": "https://dianlv-res.oss-cn-shenzhen.aliyuncs.com/exportFiles/1_265261960876529885.jpg",
"tenantID": 1 "tenantID": 1
}' }'
\ No newline at end of file
FROM python:3.11.4-slim
RUN rm -rf /admin/app/*
COPY . /admin/app
RUN mkdir -p /admin/logs/ \
&& pip3 install -r requirements.txt
CMD ["python3", "/admin/app/app.py" ]
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