Skip to content

Commit 5635c4f

Browse files
authored
Merge pull request #2 from cikupin/use_php5.6_base_image
add zip extension & internal composer
2 parents 4ffd28a + 426d656 commit 5635c4f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Build/Dockerfile

+10
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ RUN docker-php-ext-install -j$(nproc) sysvsem
7272
RUN docker-php-ext-install -j$(nproc) sysvshm
7373
RUN docker-php-ext-install -j$(nproc) wddx
7474
RUN docker-php-ext-install -j$(nproc) shmop
75+
RUN docker-php-ext-install -j$(nproc) zip
7576

7677
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl
7778
RUN docker-php-ext-install -j$(nproc) imap
@@ -97,8 +98,17 @@ RUN cp "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
9798
# Enable apache2 modules
9899
RUN a2enmod rewrite
99100

101+
# Install original composer
102+
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
103+
RUN php -r "if (hash_file('sha384', 'composer-setup.php') === '93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
104+
RUN php composer-setup.php
105+
RUN mv composer.phar /usr/local/bin/composer
106+
RUN php -r "unlink('composer-setup.php');"
107+
100108
# Clean files
101109
RUN apt-get autoclean
102110
RUN apt-get clean
103111
RUN apt-get autoremove
104112
RUN rm -rf /tmp/*
113+
114+
WORKDIR /var/www/html

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Dockerized LAMPP stack based on these components:
55

66
* Apache2
77
* PHP 5.6
8-
* PhpMyAdmin 4.4.13.1
8+
* PhpMyAdmin 4.8
99
* MariaDB 10.3
1010
* Redis 3.0.7
1111
* MongoDb 3.4.4

0 commit comments

Comments
 (0)