1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-06-02 23:07:27 +02:00

add inference

This commit is contained in:
kev 2025-02-14 18:47:22 +08:00
parent 157d8875c8
commit 12a951ef42
3 changed files with 40 additions and 0 deletions

View File

@ -500,6 +500,7 @@ A collection of delicious docker recipes.
- [x] danielgatis/rembg
- [x] datarhei/restreamer
- [x] restic/rest-server
- [x] roboflow/roboflow-inference-server-cpu
- [x] rocker/rstudio
- [x] rocket.chat
- [x] rundeck/rundeck

24
inference/README.md Normal file
View File

@ -0,0 +1,24 @@
inference
=========
[Inference][1] turns any computer or edge device into a command center for your computer vision projects.
```bash
$ docker compose up -d
$ curl -X POST "http://localhost:9001/infer/workflows/roboflow-docs/model-comparison" \
-H "Content-Type: application/json" \
-d '{
"api_key": "<YOUR API KEY -- REMOVE THIS LINE IF NOT FILLING>",
"inputs": {
"image": {
"type": "url",
"value": "https://media.roboflow.com/workflows/examples/bleachers.jpg"
},
"model1": "yolov8n-640",
"model2": "yolov11n-640"
}
}'
```
[1]: https://github.com/roboflow/inference/tree/main

View File

@ -0,0 +1,15 @@
services:
inference:
image: roboflow/roboflow-inference-server-cpu:latest
ports:
- "9001:9001"
volumes:
- ./data:/tmp:rw
security_opt:
- no-new-privileges
cap_drop:
- ALL
cap_add:
- NET_BIND_SERVICE
read_only: true
restart: unless-stopped