Dockerfile 820 B

123456789101112131415161718192021222324252627
  1. FROM rockylinux:8.5
  2. RUN yum install epel-release git gcc -y
  3. RUN yum -y install openssl-devel bzip2-devel libffi-devel xz-devel
  4. RUN yum install python3.8 -y
  5. RUN echo 1 | update-alternatives --config python3
  6. RUN dnf -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
  7. RUN dnf module disable postgresql -y
  8. RUN dnf install postgresql13-devel -y
  9. RUN yum install python38-devel libpq-devel -y
  10. RUN dnf install sshpass -y
  11. COPY requirements.txt requirements.txt
  12. RUN ln -s /usr/pgsql-13/bin/pg_config /usr/bin/pg_config
  13. RUN pip3 install psycopg2-binary
  14. RUN pip3 install -r requirements.txt
  15. RUN mkdir /MonSter/
  16. COPY init_k8s_pod.sh /MonSter/
  17. RUN chmod 777 /MonSter/init_k8s_pod.sh
  18. RUN mkdir /log/
  19. RUN touch /log/monster.log
  20. COPY monster /MonSter/
  21. WORKDIR /MonSter/