Advertisement
Guest User

Untitled

a guest
Jul 21st, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. root-dir
  2. - src // this is where my php / laravel code lives
  3. -- info.php // file having phpinfo(); just to ensure that everything has set properly
  4. - docker // this is where all containers and config settings live
  5. -- php etc..
  6. - docker-compose.yml
  7.  
  8. FROM ubuntu:18.04
  9.  
  10. ENV TERM=linux
  11.  
  12. ARG DEBIAN_FRONTEND=noninteractive
  13.  
  14. RUN apt-get update
  15. RUN apt-get install -y curl zip unzip --no-install-recommends apt-utils ca-certificates
  16. RUN apt-get install -y --no-install-recommends php7.2-fpm
  17. php7.2-cli
  18. php7.2-mysql
  19. php7.2-xml
  20. php7.2-curl
  21. php7.2-bcmath
  22. php7.2-bz2
  23. php7.2-curl
  24. php7.2-zip
  25. php7.2-gd
  26. php7.2-gettext
  27. php7.2-zip
  28. php7.2-soap
  29. php7.2-odbc
  30. php7.2-json
  31. php7.2-geoip
  32. php7.2-igbinary
  33. php7.2-imagick
  34. php7.2-mbstring
  35. php7.2-msgpack
  36. php7.2-ssh2
  37. php7.2-memcached
  38. php7.2-xdebug
  39. php7.2-intl
  40. php7.2-opcache
  41. php7.2-readline
  42.  
  43. RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
  44. RUN apt-get clean
  45. RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* ~/.composer
  46.  
  47.  
  48. COPY php.ini /etc/php/$PHPVER/cli/php.ini
  49. COPY php.ini /etc/php/$PHPVER/fpm/php.ini
  50. COPY 20-xdebug.ini /etc/php/$PHPVER/cli/conf.d/20-xdebug.ini
  51. COPY 20-xdebug.ini /etc/php/$PHPVER/fpm/conf.d/20-xdebug.ini
  52. COPY php-fpm-startup /usr/bin/php
  53. CMD /usr/bin/php
  54.  
  55. EXPOSE 9000
  56.  
  57. ENTRYPOINT ["/usr/bin/php"]
  58. CMD ["--version"]
  59.  
  60. ERROR: for php Cannot start service php: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: "/usr/bin/php": permission denied": unknown
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement