File size: 597 Bytes
e9833fa 59ebac7 e9833fa 59ebac7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
---
title: Segment Geospatial
emoji: 📉
colorFrom: red
colorTo: blue
sdk: docker
pinned: false
---
Build the docker image:
```bash
# clean any old active containers
docker stop $(docker ps -a -q); docker rm $(docker ps -a -q)
# build the image, use the tag "semgeo"
docker build . --tag semgeo --progress=plain
```
Run the container (keep it on background) and show logs
```bash
docker run -d --name semgeo -p 7860:7860 semgeo; docker logs -f semgeo
```
Test it with curl:
```bash
curl -X 'POST' \
'http://localhost:7860/infer_samgeo' \
-H 'accept: application/json' \
-d '{}'
```
|