File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,20 @@ COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
6
6
# Enable rewrite mode
7
7
RUN a2enmod rewrite
8
8
9
+ # Install git
10
+ RUN apt-get update
11
+ RUN apt-get install libzip-dev git unzip -y --no-install-recommends
12
+
13
+ # RUN docker-php-ext-install zip intl mbstring pdo_mysql exif gd
14
+ RUN docker-php-ext-install zip pdo_mysql
15
+
16
+ # Install composer
17
+ RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
18
+ RUN php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
19
+ RUN php composer-setup.php
20
+ RUN php -r "unlink('composer-setup.php');"
21
+ RUN mv composer.phar /usr/local/bin/composer
22
+
9
23
WORKDIR /var/www
10
24
11
25
# Change the owner of the container document root
You can’t perform that action at this time.
0 commit comments