Skip to content

Instantly share code, notes, and snippets.

@xeb
Created August 23, 2016 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xeb/be15f9099f7f3f3eeda53a926f649b96 to your computer and use it in GitHub Desktop.
Save xeb/be15f9099f7f3f3eeda53a926f649b96 to your computer and use it in GitHub Desktop.
fastText with Python 3.5 Example
# Modified from: https://github.com/xeb/fastText-docker/blob/master/Dockerfile
# To build & run, do:
# docker build -t fasttext-py3.5 -f Dockerfile.py35 .
# docker run --rm -it fasttext-py3.5 ./eval.py
#
FROM python:3.5
RUN apt-get update && apt-get install -y \
build-essential \
wget \
git \
python-dev \
&& pip install numpy scipy \
&& rm -rf /var/cache/apk/*
RUN git clone https://github.com/facebookresearch/fastText.git /tmp/fastText && \
rm -rf /tmp/fastText/.git* && \
mv /tmp/fastText/* / && \
cd / && \
make
WORKDIR /
CMD ["./fasttext"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment