Skip to content

Commit

Permalink
Updated Dockerfile using requirements.txt (#492)
Browse files Browse the repository at this point in the history
* updated Dockerfile using requirements.txt

* Using full python3 instead of slim
  • Loading branch information
tommy4st authored Nov 1, 2024
1 parent a128d54 commit bda262e
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]

0 comments on commit bda262e

Please sign in to comment.