Skip to content

Commit 487a275

Browse files
authored
replace requirements.txt with pyproject.toml in Docker file (#776)
* replace requirements.txt with pyproject.toml in Docker file * updated docker test image * . * update expected output
1 parent c404277 commit 487a275

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/docker-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
2626
# Optional: Add basic test to verify the image works
2727
- name: Test Docker image
2828
run: |
29-
docker run -v $PWD/birdnet_analyzer/example:/audio birdnet:local-test -m birdnet_analyzer.analyze --i /audio --o /audio --slist /audio
29+
docker run -v $PWD/birdnet_analyzer/example:/audio birdnet:local-test -m birdnet_analyzer.analyze /audio --slist /audio
3030
3131
# Verify output file content
3232
expected_header="Selection View Channel Begin Time (s) End Time (s) Low Freq (Hz) High Freq (Hz) Common Name Species Code Confidence Begin Path File Offset (s)"
33-
expected_first_line="1 Spectrogram 1 1 0 3.0 0 15000 Black-capped Chickadee bkcchi 0.8141 /audio/soundscape.wav 0"
33+
expected_first_line="1 Spectrogram 1 1 0.0 3.0 0 15000 Black-capped Chickadee bkcchi 0.8141 /audio/soundscape.wav 0.0"
3434
3535
actual_header=$(head -n 1 birdnet_analyzer/example/soundscape.BirdNET.selection.table.txt)
3636
actual_first_line=$(head -n 2 birdnet_analyzer/example/soundscape.BirdNET.selection.table.txt | tail -n 1)

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg && rm -
88
COPY . ./
99

1010
# Install required Python packages
11-
RUN pip3 install --no-cache-dir -r requirements.txt
11+
RUN pip3 install --no-cache-dir .
1212

1313
# Add entry point to run the script
1414
ENTRYPOINT [ "python3" ]

0 commit comments

Comments
 (0)