forked from NINAnor/snowmobile_analyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloud_Dockerfile
37 lines (28 loc) · 1014 Bytes
/
cloud_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
32
33
34
35
36
FROM python:3.8-bullseye
ARG PACKAGES="ffmpeg build-essential unzip gcsfuse"
ARG DEBIAN_FRONTEND=noninteractive
RUN \
echo "deb https://packages.cloud.google.com/apt gcsfuse-bullseye main" | tee /etc/apt/sources.list.d/gcsfuse.list && \
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \
apt-get update && \
apt-get install -qq $PACKAGES && \
rm -rf /var/lib/apt/lists/*
RUN pip3 install poetry
WORKDIR /app
# Clone the repository and download assets
RUN mkdir audioclip
RUN cd audioclip
RUN wget https://zenodo.org/record/7969521/files/assets.zip?download=1
RUN unzip ./assets.zip?download=1
RUN cd ../
# Package install
COPY . ./
RUN poetry config virtualenvs.create false
RUN poetry add distlib
RUN poetry install --no-root
RUN poetry add Flask
RUN poetry add python-dotenv
RUN poetry add google-cloud-storage
RUN poetry add pydub
ENV PYTHONPATH "${PYTHONPATH}:/app:/app/audioclip:/app:/app/src"
ENTRYPOINT ["python", "/app/cloud_analysis/main.py"]