Search on legal documents using Tensorflow and a web_actix web interface
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.0 KiB

3 years ago
  1. FROM tensorflow/tensorflow:1.12.0-gpu
  2. COPY Prototyp /home/Prototyp
  3. COPY requis.txt /home/requis.txt
  4. RUN apt-get update && apt-get install -y wget libssl-dev openssl
  5. #RUN wget https://www.python.org/ftp/python/3.5.3/Python-3.5.3.tgz
  6. #RUN tar -xzvf Python-3.5.3.tgz
  7. #RUN cd Python-3.5.3 && ./configure && make && make install
  8. RUN python --version
  9. RUN apt-get update && apt-get install -y virtualenv python-dev python-pip build-essential
  10. #RUN python3.5 -m venv /home/venv
  11. #ENV PATH="home/venv/bin:$PATH"
  12. RUN python --version
  13. #RUN pip3 install --upgrade pip
  14. RUN pip install -r /home/requis.txt && python -m spacy download de
  15. RUN pip install hickle==3.4.9 Twisted joblib
  16. #nodejs npm
  17. #RUN python -m pip install incremental
  18. #RUN python -m pip install cffi
  19. #RUN python -m pip install -r /home/requis.txt
  20. #RUN python3 -m spacy download de
  21. #RUN pip3 install pandas bs4
  22. RUN apt-get update && apt-get install -y nodejs
  23. #ENTRYPOINT ["tail"]
  24. #CMD ["-f","/dev/null"]
  25. CMD /bin/sh -c "cd /home/Prototyp && nodejs server.js"