forked from abhirooptalasila/AutoSub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.gpu
More file actions
35 lines (25 loc) · 739 Bytes
/
Dockerfile.gpu
File metadata and controls
35 lines (25 loc) · 739 Bytes
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
ARG BASEIMAGE=nvidia/cuda:10.1-cudnn7-runtime-ubuntu18.04
FROM ${BASEIMAGE}
ARG DEPSLIST=requirements-gpu.txt
ENV PYTHONUNBUFFERED 1
COPY *.pbmm ./
COPY *.scorer ./
COPY setup.py ./
RUN DEBIAN_FRONTEND=noninteractive apt update && \
apt -y install ffmpeg libsm6 libxext6 python3 python3-pip wget && \
apt -y clean && \
rm -rf /var/lib/apt/lists/*
COPY $DEPSLIST ./requirements.txt
COPY run.sh ./run.sh
RUN chmod +x ./run.sh
# make sure pip is up-to-date
RUN python3 -m pip install --upgrade pip
RUN pip3 install --no-cache-dir -r requirements.txt
# Mount data
VOLUME /input
VOLUME /output
VOLUME /deepspeech
RUN mkdir /audio
# Copying autosub for last for faster debugging
COPY autosub ./autosub
ENTRYPOINT ["./run.sh"]