-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
32 lines (23 loc) · 1.2 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Install NVIDIA GPU image
FROM nvcr.io/nvidia/l4t-tensorflow:r32.4.4-tf2.3-py3
# Install dependencies
RUN apt-get update && apt-get install -y --no-install-recommends software-properties-common python3-pip python3-opencv python3-setuptools libedit-dev ffmpeg git cmake mpg321 && rm -rf /var/lib/apt/lists/*
# Install required Python packages
RUN pip3 install --upgrade pip
RUN pip3 install soundfile soundcard
# Install pywaggle from specific release
# RUN pip3 install git+https://github.com/waggle-sensor/[email protected]
# Import all scripts
COPY . ./
RUN pip3 install --no-cache-dir -r requirements.txt
ADD https://web.lcrc.anl.gov/public/waggle/models/osn-backup/cafb2b6a-8e1d-47c0-841f-3cad27737698/BirdNET_6K_GLOBAL_MODEL.tflite /BirdNET_6K_GLOBAL_MODEL.tflite
#ARG SAGE_STORE_URL="https://osn.sagecontinuum.org"
#ARG BUCKET_ID_MODEL="cafb2b6a-8e1d-47c0-841f-3cad27737698"
#ENV LC_ALL="C.UTF-8" \
#LANG="C.UTF-8" \
#SAGE_STORE_URL=${SAGE_STORE_URL} \
#BUCKET_ID_MODEL=${BUCKET_ID_MODEL}
#RUN sage-cli.py storage files download ${BUCKET_ID_MODEL} \
#BirdNET_6K_GLOBAL_MODEL.tflite --target /BirdNET_6K_GLOBAL_MODEL.tflite
# Add entry point to run the script
ENTRYPOINT [ "python3", "./analyze.py" ]