Skip to content

Commit bda262e

Browse files
authored
Updated Dockerfile using requirements.txt (#492)
* updated Dockerfile using requirements.txt * Using full python3 instead of slim
1 parent a128d54 commit bda262e

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Dockerfile

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
# Build from Python 3.8 slim
2-
FROM python:3.9-slim
1+
# Build from Python slim
2+
FROM python:3.11
33

44
# Install required packages while keeping the image small
55
RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg && rm -rf /var/lib/apt/lists/*
66

7-
# Install required Python packages
8-
RUN pip3 install numpy scipy librosa bottle resampy
9-
10-
# Install Tensforflow
11-
RUN pip3 install tensorflow
12-
137
# Import all scripts
148
COPY . ./
159

10+
# Install required Python packages
11+
RUN pip3 install --no-cache-dir -r requirements.txt
12+
1613
# Add entry point to run the script
1714
ENTRYPOINT [ "python3" ]
1815
CMD [ "-m", "birdnet_analyzer.analyze" ]

0 commit comments

Comments
 (0)