Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root-dir
- - src // this is where my php / laravel code lives
- -- info.php // file having phpinfo(); just to ensure that everything has set properly
- - docker // this is where all containers and config settings live
- -- php etc..
- - docker-compose.yml
- FROM ubuntu:18.04
- ENV TERM=linux
- ARG DEBIAN_FRONTEND=noninteractive
- RUN apt-get update
- RUN apt-get install -y curl zip unzip --no-install-recommends apt-utils ca-certificates
- RUN apt-get install -y --no-install-recommends php7.2-fpm
- php7.2-cli
- php7.2-mysql
- php7.2-xml
- php7.2-curl
- php7.2-bcmath
- php7.2-bz2
- php7.2-curl
- php7.2-zip
- php7.2-gd
- php7.2-gettext
- php7.2-zip
- php7.2-soap
- php7.2-odbc
- php7.2-json
- php7.2-geoip
- php7.2-igbinary
- php7.2-imagick
- php7.2-mbstring
- php7.2-msgpack
- php7.2-ssh2
- php7.2-memcached
- php7.2-xdebug
- php7.2-intl
- php7.2-opcache
- php7.2-readline
- RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- RUN apt-get clean
- RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* ~/.composer
- COPY php.ini /etc/php/$PHPVER/cli/php.ini
- COPY php.ini /etc/php/$PHPVER/fpm/php.ini
- COPY 20-xdebug.ini /etc/php/$PHPVER/cli/conf.d/20-xdebug.ini
- COPY 20-xdebug.ini /etc/php/$PHPVER/fpm/conf.d/20-xdebug.ini
- COPY php-fpm-startup /usr/bin/php
- CMD /usr/bin/php
- EXPOSE 9000
- ENTRYPOINT ["/usr/bin/php"]
- CMD ["--version"]
- 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