Skip to content

Commit

Permalink
Merge pull request #40 from isZumpo/docker-volume-cleanup
Browse files Browse the repository at this point in the history
Define docker volumes & add docker documentation
  • Loading branch information
tphakala authored Mar 3, 2024
2 parents ea817bc + 380d653 commit d307e95
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,12 @@ COPY --from=build /root/src/BirdNET-Go/bin /usr/bin/
COPY --from=build /usr/local/lib/libtensorflowlite_c.so /usr/local/lib/libtensorflowlite_c.so
RUN ldconfig

# Add symlink to /config directory where configs can be stored
VOLUME /config
RUN mkdir -p /root/.config && ln -s /config /root/.config/birdnet-go

VOLUME /data
WORKDIR /data

ENTRYPOINT ["/usr/bin/birdnet-go"]
CMD ["realtime"]
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@ BirdNET-Go is an AI solution for continuous avian monitoring and identification
Ready to run binaries can be found from releases section https://github.com/tphakala/BirdNET-Go/releases/
Archives also contains libtensorflowlite_c library.

### Docker

```
docker run -ti \
-p 8080:8080 \
-v /path/to/config:/config \
-v /path/to/data:/data \
ghcr.io/tphakala/birdnet-go:latest
```

| Parameter | Function |
| :----: | --- |
| `-p 8080` | BirdNET-GO webserver port. |
| `-v /config` | Config directory in the container. |
| `-v /data` | Data such as database and recordings. |

## Compiling for Linux

### Install TensorFlow Lite C library and setup headers for compile process
Expand Down

0 comments on commit d307e95

Please sign in to comment.