forked from ringcentral/ringcentral-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
12 lines (12 loc) · 728 Bytes
/
Dockerfile
File metadata and controls
12 lines (12 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
FROM php:7.3-cli
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y git
RUN pecl install xdebug-2.7.2 && docker-php-ext-enable xdebug
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
php -r "if (hash_file('sha384', 'composer-setup.php') === '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f5') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \
php composer-setup.php && \
php -r "unlink('composer-setup.php');" && \
mv composer.phar /usr/local/bin/composer
RUN echo 'phar.readonly = Off' > /usr/local/etc/php/conf.d/phar.ini
WORKDIR /opt/sdk