Last active
December 18, 2017 20:27
-
-
Save nobuf/80a809c93012406b57214e96c541b974 to your computer and use it in GitHub Desktop.
Simple Dockerfile for DeepSpeech
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# git clone https://github.com/mozilla/DeepSpeech.git | |
# cd DeepSpeech | |
# git checkout -b v0.1.0 | |
# vi Dockerfile | |
# docker build -t deepspeech . | |
# docker run -it -v "$PWD":/app deepspeech bash | |
# ./DeepSpeech.py --help | |
# | |
FROM python:2.7.14-slim-stretch | |
WORKDIR /app | |
COPY util/taskcluster.py /app/util/taskcluster.py | |
COPY requirements.txt /app/requirements.txt | |
RUN apt-get update \ | |
&& apt-get install gcc xz-utils procps -y \ | |
&& apt-get clean \ | |
&& pip install six \ | |
&& python util/taskcluster.py \ | |
--target /tmp --source tensorflow \ | |
--artifact tensorflow_warpctc-1.4.0-cp27-cp27mu-linux_x86_64.whl \ | |
&& pip install /tmp/tensorflow_warpctc-1.4.0-cp27-cp27mu-linux_x86_64.whl \ | |
&& rm /tmp/tensorflow_warpctc-1.4.0-cp27-cp27mu-linux_x86_64.whl \ | |
&& pip install -r requirements.txt \ | |
&& mkdir -p decode \ | |
&& python util/taskcluster.py --target decode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment