diff --git a/Dockerfile b/Dockerfile index fc215fd6..bfc1f5e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/README.md b/README.md index eea64408..47f178a1 100644 --- a/README.md +++ b/README.md @@ -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