Created
December 19, 2016 14:34
-
-
Save theist/91e3d1097b31f83d39db7b1a00c5936a to your computer and use it in GitHub Desktop.
laice dockerfile
This file contains 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
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