Dockerfile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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:jammy
  6. ARG DEBIAN_FRONTEND=noninteractive
  7. RUN ["apt","update","--fix-missing"]
  8. RUN ["apt-get","upgrade","-y"]
  9. RUN ["apt-get","-y","install","apt-utils"]
  10. RUN ["apt","update","--fix-missing"]
  11. RUN ["apt-get","upgrade","-y"]
  12. RUN ["apt-get","install","-y","locales-all","sqlite3","unzip","sqlite3-pcre","libsqlite3-dev","python3-dev","python3","postgresql","python3-pip","git","wget"]
  13. #
  14. #
  15. RUN ["pip3","install","--upgrade","pip"]
  16. RUN ["pip3","install","gitpython","git+https://hiplab.mc.vanderbilt.edu/git/hiplab/parser.git"]
  17. RUN ["pip3","install","qcms@git+https://dev.the-phi.com/git/cloud/qcms"]
  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"]
  23. #
  24. # This is the port from which some degree of monitoring can/will happen
  25. EXPOSE 80
  26. # wget https://healthcareio.the-phi.com/git/code/parser.git/bootup.sh
  27. RUN ["wget","https://github.com/sosedoff/pgweb/releases/download/v0.14.2/pgweb_linux_amd64.zip"]
  28. RUN ["unzip","pgweb_linux_amd64.zip","-d","/apps"]
  29. EXPOSE 5000
  30. EXPOSE 5432
  31. COPY postgresql/pg_hba.conf /etc/postgresql/14/main/pg_hba.conf
  32. COPY postgresql/postgresql.conf /etc/postgresql/14/main/postgresql.conf
  33. RUN chown postgres:postgres /etc/postgresql/14/main/pg_hba.conf
  34. RUN chown postgres:postgres /etc/postgresql/14/main/postgresql.conf
  35. COPY bootup.sh bootup.sh
  36. ENTRYPOINT ["bash","-C"]
  37. CMD ["bootup.sh"]
  38. # VOLUME ["/home/health-user/healthcare-io/","/home-healthuser/.healthcareio"]
  39. # RUN ["pip3","install","git+https://healthcareio.the-phi.com/git"]