forked from SeanNaren/deepspeech.pytorch
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
29 lines (20 loc) · 596 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
FROM recog/pytorch
WORKDIR /workspace
RUN git clone https://github.com/recognai/warp-ctc.git \
&& mkdir warp-ctc/build
WORKDIR warp-ctc/build
RUN cmake .. \
&& make \
&& export CUDA_HOME="/usr/local/cuda"
WORKDIR ../pytorch_binding
RUN pip install cffi && python setup.py install
WORKDIR /workspace
RUN apt-get update \
&& apt-get install -q -y sox libsox-dev libsox-fmt-all \
&& git clone https://github.com/pytorch/audio.git
WORKDIR audio
RUN python setup.py install
WORKDIR /workspace
COPY . deepspeech.pytorch
WORKDIR deepspeech.pytorch
RUN pip install -r requirements.txt