123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #
- # Let us create an image for healthcareio
- # The image will contain the {X12} Parser and the
- # FROM ubuntu:bionic-20200403
- FROM ubuntu:jammy
- ARG DEBIAN_FRONTEND=noninteractive
- RUN ["apt","update","--fix-missing"]
- RUN ["apt-get","upgrade","-y"]
- RUN ["apt-get","-y","install","apt-utils"]
- RUN ["apt","update","--fix-missing"]
- RUN ["apt-get","upgrade","-y"]
- RUN ["apt-get","install","-y","locales-all","sqlite3","unzip","sqlite3-pcre","libsqlite3-dev","python3-dev","python3","postgresql","python3-pip","git","wget"]
- #
- #
- RUN ["pip3","install","--upgrade","pip"]
- RUN ["pip3","install","gitpython","git+https://hiplab.mc.vanderbilt.edu/git/hiplab/parser.git"]
- RUN ["pip3","install","qcms@git+https://dev.the-phi.com/git/cloud/qcms"]
- #USER health-user
- #
- # This volume is where the data will be loaded from (otherwise it is assumed the user will have it in the container somehow)
- #
- VOLUME ["/data"]
- #
- # This is the port from which some degree of monitoring can/will happen
- EXPOSE 80
- # wget https://healthcareio.the-phi.com/git/code/parser.git/bootup.sh
- RUN ["wget","https://github.com/sosedoff/pgweb/releases/download/v0.14.2/pgweb_linux_amd64.zip"]
- RUN ["unzip","pgweb_linux_amd64.zip","-d","/apps"]
- EXPOSE 5000
- EXPOSE 5432
- COPY postgresql/pg_hba.conf /etc/postgresql/14/main/pg_hba.conf
- COPY postgresql/postgresql.conf /etc/postgresql/14/main/postgresql.conf
- RUN chown postgres:postgres /etc/postgresql/14/main/pg_hba.conf
- RUN chown postgres:postgres /etc/postgresql/14/main/postgresql.conf
- COPY bootup.sh bootup.sh
- ENTRYPOINT ["bash","-C"]
- CMD ["bootup.sh"]
- # VOLUME ["/home/health-user/healthcare-io/","/home-healthuser/.healthcareio"]
- # RUN ["pip3","install","git+https://healthcareio.the-phi.com/git"]
|