2022-08-20 05:22:07 +02:00
|
|
|
# Recording container for BirdNET-stream
|
2022-08-22 06:22:30 +02:00
|
|
|
# References:
|
|
|
|
# - https://leimao.github.io/blog/Docker-Container-Audio/
|
|
|
|
# - https://askubuntu.com/questions/972510/how-to-set-alsa-default-device-to-pulseaudio-sound-server-on-docker
|
2022-08-20 05:22:07 +02:00
|
|
|
|
|
|
|
FROM debian:bullseye
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
# Install packages dependencies
|
2022-08-22 06:22:30 +02:00
|
|
|
RUN apt-get update && apt-get upgrade -y \
|
|
|
|
&& apt-get install -y \
|
|
|
|
--no-install-recommends \
|
2022-08-20 05:22:07 +02:00
|
|
|
libasound2 \
|
|
|
|
alsa-utils \
|
|
|
|
libsndfile1-dev \
|
2022-08-22 06:22:30 +02:00
|
|
|
&& apt-get install -y ffmpeg \
|
2022-08-20 05:22:07 +02:00
|
|
|
&& apt-get clean
|
2022-08-22 06:22:30 +02:00
|
|
|
|
|
|
|
RUN mkdir -p /opt/birdnet/
|
|
|
|
WORKDIR /opt/birdnet/
|
|
|
|
COPY config ./config
|
|
|
|
COPY daemon/birdnet_recording.sh /usr/local/bin/birdnet_recording.sh
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/birdnet_recording.sh"]
|