Dockerfile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. FROM centos:7
  2. LABEL maintainer=blackholll@163.com
  3. RUN mkdir -p /var/log/loonflow & \
  4. yum install -y wget make mysql-devel gcc gcc-devel python3-devel mysql-devel zlib-devel openssl-devel git automake libtool libffi-devel
  5. WORKDIR /tmp
  6. RUN wget http://www.openssl.org/source/openssl-1.1.1q.tar.gz --no-check-certificate
  7. RUN tar -zxvf openssl-1.1.1q.tar.gz
  8. RUN cd openssl-1.1.1q && ./config shared --openssldir=/usr/local/openssl --prefix=/usr/local/openssl \
  9. && make && make install \
  10. && echo "/usr/local/lib64/" >> /etc/ld.so.conf \
  11. && echo "/usr/local/openssl/lib" >> /etc/ld.so.conf \
  12. && ldconfig \
  13. && ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl \
  14. && ln -s /usr/local/openssl/include/openssl /usr/include/openssl
  15. RUN wget https://www.python.org/ftp/python/3.10.9/Python-3.10.9.tgz
  16. RUN tar zxvf Python-3.10.9.tgz
  17. RUN cd Python-3.10.9 && ./configure --with-openssl=/usr/local/openssl --enable-optimizations && make altinstall
  18. RUN wget http://nginx.org/download/nginx-1.22.1.tar.gz --no-check-certificate
  19. RUN tar zxvf nginx-1.22.1.tar.gz
  20. RUN sed -i "s/\/.openssl//g" /tmp/nginx-1.22.1/auto/lib/openssl/conf
  21. RUN cd nginx-1.22.1 && ./configure --with-openssl=/usr/local/openssl --with-http_stub_status_module --with-http_ssl_module && make && make install
  22. WORKDIR /opt
  23. RUN wget -c https://nodejs.org/download/release/v14.3.0/node-v14.3.0-linux-x64.tar.xz --no-check-certificate
  24. RUN tar -xvf node-v14.3.0-linux-x64.tar.xz
  25. RUN mv node-v14.3.0-linux-x64 nodejs
  26. RUN ln -s /opt/nodejs/bin/node /usr/local/bin/node
  27. RUN ln -s /opt/nodejs/bin/npm /usr/local/bin/npm