Skip to content

Instantly share code, notes, and snippets.

@theist
Created December 19, 2016 14:34
Show Gist options
  • Save theist/91e3d1097b31f83d39db7b1a00c5936a to your computer and use it in GitHub Desktop.
Save theist/91e3d1097b31f83d39db7b1a00c5936a to your computer and use it in GitHub Desktop.
laice dockerfile
FROM debian
RUN apt-get -y update && apt-get -y install python3 python3-pip build-essential git wget curl
RUN curl -sL https://deb.nodesource.com/setup_4.x | bash -
RUN apt-get install -y nodejs
RUN git clone https://github.com/kendricktan/laice.git
WORKDIR laice
RUN npm install -g bower
RUN bower install --allow-root
RUN pip3 install -r requirements.txt
#RUN python3 -m spacy.en.download --force all # (LONG TIME, prone to fail and adds 700Mb img size, but leads to accurate results)
RUN python3 manage.py migrate
EXPOSE 8000
CMD python3 manage.py runserver 0.0.0.0:8000
# build as docker build . -t laice
# run as docker run --rm -p 8000:8000 laice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment