Dockerfile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # Let us create an image for healthcareio
  3. # The image will contain the {X12} Parser and the
  4. # FROM ubuntu:bionic-20200403
  5. FROM ubuntu:focal
  6. RUN ["apt-get","update","--fix-missing"]
  7. RUN ["apt-get","upgrade","-y"]
  8. RUN ["apt-get","-y","install","apt-utils"]
  9. RUN ["apt-get","update","--fix-missing"]
  10. RUN ["apt-get","upgrade","-y"]
  11. RUN ["apt-get","install","-y","mongodb","sqlite3","sqlite3-pcre","libsqlite3-dev","python3-dev","python3","python3-pip","git","python3-virtualenv","wget"]
  12. #
  13. #
  14. RUN ["pip3","install","--upgrade","pip"]
  15. RUN ["pip3","install","numpy","pandas","git+https://dev.the-phi.com/git/steve/data-transport","botocore","matplotlib"]
  16. RUN ["pip3","install","git+https://healthcare.the-phi.com/git/code/parser.git"]
  17. # RUN ["useradd", "-ms", "/bin/bash", "health-user"]
  18. # USER health-user
  19. #
  20. # This volume is where the data will be loaded from (otherwise it is assumed the user will have it in the container somehow)
  21. #
  22. VOLUME ["/data","/app/healthcareio"]
  23. WORKDIR /app
  24. ENV PYTHONPATH="/app"
  25. #
  26. # This is the port from which some degree of monitoring can/will happen
  27. EXPOSE 80
  28. EXPOSE 27017
  29. # wget https://healthcareio.the-phi.com/git/code/parser.git/bootup.sh
  30. COPY bootup.sh bootup.sh
  31. ENTRYPOINT ["bash","-C"]
  32. CMD ["bootup.sh"]
  33. # VOLUME ["/home/health-user/healthcare-io/","/home-healthuser/.healthcareio"]
  34. # RUN ["pip3","install","git+https://healthcareio.the-phi.com/git"]