From bda262ee4d70c42671263d7dfc191ab4430ed9bb Mon Sep 17 00:00:00 2001 From: Thomas Wilhelm-Stein Date: Fri, 1 Nov 2024 15:57:08 +0100 Subject: [PATCH] Updated Dockerfile using requirements.txt (#492) * updated Dockerfile using requirements.txt * Using full python3 instead of slim --- Dockerfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 38539a85..d718eb43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,15 @@ -# Build from Python 3.8 slim -FROM python:3.9-slim +# Build from Python slim +FROM python:3.11 # Install required packages while keeping the image small RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg && rm -rf /var/lib/apt/lists/* -# Install required Python packages -RUN pip3 install numpy scipy librosa bottle resampy - -# Install Tensforflow -RUN pip3 install tensorflow - # Import all scripts COPY . ./ +# Install required Python packages +RUN pip3 install --no-cache-dir -r requirements.txt + # Add entry point to run the script ENTRYPOINT [ "python3" ] CMD [ "-m", "birdnet_analyzer.analyze" ]