Skip to content

Commit 1e13010

Browse files
committed
Create Dockerfile
1 parent 88d0c83 commit 1e13010

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docker/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
66
# Enable rewrite mode
77
RUN a2enmod rewrite
88

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+
923
WORKDIR /var/www
1024

1125
# Change the owner of the container document root

0 commit comments

Comments
 (0)