Dockerfile 678 B

1234567891011121314151617181920
  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. COPY requirements.txt requirements.txt
  11. RUN ln -s /usr/pgsql-13/bin/pg_config /usr/bin/pg_config
  12. RUN pip3 install psycopg2-binary
  13. RUN pip3 install -r requirements.txt
  14. RUN mkdir /log/
  15. RUN touch /log/monster.log
  16. WORKDIR /MonSter/