forked from orcasound/aifororcas-livesystem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (26 loc) · 855 Bytes
/
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
FROM ubuntu:18.04
# Install sudo apt-get requirements
RUN apt-get update && apt-get install -y \
libsm6 \
libxext6 \
libxrender-dev \
libglib2.0-0 \
ffmpeg \
python3 \
python3-pip \
unzip \
git
# Install pip requirements
WORKDIR /usr/src/install
COPY ./requirements.txt ./requirements.txt
RUN python3 -m pip install --upgrade pip && pip install -r requirements.txt
# From now on, we will be working in the app's running directory
WORKDIR /usr/src/app
# Put model in place at WORKDIR/model
COPY ./model.zip ./model.zip
RUN unzip ./model.zip
RUN rm ./model.zip
# Move source code to app working directory
COPY ./src/ ./src
COPY ./config/ ./config
CMD ["python3", "-u", "./src/LiveInferenceOrchestrator.py", "--config", "./config/Production/Huggingface_LiveHLS_OrcasoundLab.yml"]