Advertisement
ElRandir42

dockerfile

Sep 16th, 2022
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. FROM apache/airflow:2.3.0-python3.10
  2.  
  3. USER root
  4. RUN apt-get update
  5. RUN sed -i 's/SECLEVEL=2/SECLEVEL=1/' /etc/ssl/openssl.cnf
  6.  
  7. RUN apt-get install -y libaio1 wget unzip telnet
  8.  
  9. WORKDIR /opt/oracle
  10. RUN wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip && \
  11. unzip instantclient-basiclite-linuxx64.zip && \
  12. rm -f instantclient-basiclite-linuxx64.zip && \
  13. cd instantclient* && \
  14. rm -f *jdbc* *occi* *mysql* *jar uidrvci genezi adrci && \
  15. echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf && \
  16. ldconfig
  17.  
  18.  
  19. RUN apt-get update && apt-get install -y python-dev python3-dev libevent-dev gcc libre2-dev
  20.  
  21.  
  22. USER airflow
  23. #RUN apt-get update
  24. #RUN apt-get update && apt-get install -y python-dev python3-dev libevent-dev gcc libre2-dev
  25.  
  26. #RUN pip install pip==21.3.1
  27.  
  28. RUN pip install --upgrade pip
  29.  
  30. RUN pip install pyTelegramBotAPI cx_Oracle influxdb imap_tools bs4 aiogram loguru pyre2 art elasticsearch argcomplete apache-airflow-providers-oracle clickhouse-driver gspread oauth2client PySocks
  31.  
  32. WORKDIR /
  33. #RUN airflow db upgrade
  34. #RUN airflow resetdb
  35. #RUN airflow initdb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement