Advertisement
Guest User

Untitled

a guest
Oct 4th, 2019
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. FROM debian:wheezy
  2.  
  3. RUN printf "deb http://archive.debian.org/debian/ wheezy main non-free contrib\ndeb-src http://archive.debian.org/debian/ wheezy main non-free contrib\ndeb http://archive.debian.org/debian-security/ wheezy/updates main non-free contrib\ndeb-src http://archive.debian.org/debian-security/ wheezy/updates main non-free contrib" > /etc/apt/sources.list
  4.  
  5. RUN apt-get -o Acquire::Check-Valid-Until=false update && apt-get install -y wget build-essential vim git
  6.  
  7. RUN cd /tmp \
  8. && wget --no-check-certificate http://www.openssl.org/source/openssl-0.9.8x.tar.gz \
  9. && tar xvfz openssl-0.9.8x.tar.gz \
  10. && cd openssl-0.9.8x \
  11. && ./config --prefix=/usr/local/openssl-0.9.8 \
  12. && make \
  13. && make install
  14.  
  15. RUN mkdir /usr/local/src/php4-build \
  16. && cd /usr/local/src/php4-build \
  17. && wget --no-check-certificate https://museum.php.net/php4/php-4.4.9.tar.bz2 \
  18. && tar jxf php-4.4.9.tar.bz2
  19.  
  20. RUN ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/ \
  21. && ln -s /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/ \
  22. && ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18 /usr/lib/ \
  23. && ln -s /usr/lib/x86_64-linux-gnu/libexpat.so /usr/lib/ \
  24. && ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient.so /usr/lib/libmysqlclient.so \
  25. && mkdir /usr/kerberos \
  26. && ln -s /usr/lib/x86_64-linux-gnu /usr/kerberos/lib
  27.  
  28. RUN apt-get build-dep -y php5
  29.  
  30. RUN cd /usr/local/src/php4-build/php-4.4.9/ \
  31. && sed -i 's/__GMP_BITS_PER_MP_LIMB/GMP_LIMB_BITS/g' ext/gmp/gmp.c \
  32. && ./configure \
  33. --with-pdo-pgsql \
  34. --with-zlib-dir \
  35. --with-freetype-dir \
  36. --enable-mbstring \
  37. --with-libxml-dir=/usr \
  38. --enable-soap \
  39. --enable-calendar \
  40. --with-curl \
  41. --with-mhash \
  42. --with-mcrypt \
  43. --with-zlib \
  44. --with-gd \
  45. --with-pgsql \
  46. --disable-rpath \
  47. --enable-inline-optimization \
  48. --with-bz2 \
  49. --with-zlib \
  50. --enable-sockets \
  51. --enable-sysvsem \
  52. --enable-sysvshm \
  53. --enable-pcntl \
  54. --enable-mbregex \
  55. --with-mhash \
  56. --with-gmp \
  57. --enable-bcmath \
  58. --enable-zip \
  59. --with-pcre-regex \
  60. --with-jpeg-dir=/usr \
  61. --with-png-dir=/usr \
  62. --enable-gd-native-ttf \
  63. --with-openssl=/usr/local/openssl-0.9.8 \
  64. --with-openssl-dir=/usr/local/openssl-0.9.8 \
  65. --with-libdir=/lib/x86_64-linux-gnu \
  66. --enable-ftp \
  67. --with-imap \
  68. --with-imap-ssl \
  69. --with-kerberos \
  70. --with-gettext \
  71. --with-expat-dir=/usr \
  72. && make \
  73. && make install-cli
  74.  
  75. CMD ["bash"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement