Skip to content

Instantly share code, notes, and snippets.

@nobuf
Last active December 18, 2017 20:27
Show Gist options
  • Save nobuf/80a809c93012406b57214e96c541b974 to your computer and use it in GitHub Desktop.
Save nobuf/80a809c93012406b57214e96c541b974 to your computer and use it in GitHub Desktop.
Simple Dockerfile for DeepSpeech
# 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