Automated translation of german into "Leichte Sprache"
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.

40 lines
1.2 KiB

3 months ago
  1. FROM tensorflow/tensorflow:2.2.0-gpu
  2. # why 2.3 ? I looked it up on stack overflow
  3. # https://stackoverflow.com/questions/50622525/which-tensorflow-and-cuda-version-combinations-are-compatible
  4. # here is a nice list, which tf version is compatible with which cuda
  5. # from the cmmand docker run --runtime=nvidia --rm nvidia/cuda:9.0-base nvidia-smi
  6. # you get your installed cuda version running
  7. #RUN useradd -ms /bin/bash pluritonian
  8. #USER pluritonian
  9. WORKDIR /home/pluritonian
  10. RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
  11. RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
  12. RUN apt-get update && apt-get install nano
  13. RUN pip install joblib scikit-learn==0.20.0 hickle==3.4.9
  14. RUN pip install idna==2.9 python-multipart==0.0.5
  15. RUN pip install nltk==3.4.1 spacy==2.0.18 pandas==0.23.4 ipywidgets==7.5.1 beautifulsoup4==4.6.3
  16. RUN python -m spacy download de_core_news_sm
  17. RUN pip install --upgrade pip && pip install fastapi uvicorn[standard]
  18. COPY Prototyp/* /home/pluritonian/
  19. # to let the container running:
  20. CMD uvicorn --host 0.0.0.0 fastapi_server:app
  21. #ENTRYPOINT ["tail"]
  22. #CMD ["-f","/dev/null"]