-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimize Docker image and configurations
- Loading branch information
Showing
2 changed files
with
12 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,14 @@ | ||
FROM php:%%PHP_VERSION%%-fpm | ||
|
||
RUN \ | ||
apt-get update && \ | ||
apt-get install -y \ | ||
zlib1g-dev \ | ||
libzip-dev && \ | ||
docker-php-ext-install zip && \ | ||
yes '' | pecl install apcu && \ | ||
docker-php-ext-enable apcu && \ | ||
curl \ | ||
-sf \ | ||
--connect-timeout 5 \ | ||
--max-time 15 \ | ||
--retry 5 \ | ||
--retry-delay 2 \ | ||
--retry-max-time 60 \ | ||
http://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer | ||
|
||
COPY . /var/www/html | ||
|
||
RUN composer update -n | ||
RUN \ | ||
apt-get update && \ | ||
apt-get install -y \ | ||
zlib1g-dev \ | ||
libzip-dev && \ | ||
docker-php-ext-install zip && \ | ||
yes '' | pecl install apcu && \ | ||
docker-php-ext-enable apcu && \ | ||
curl -sfL http://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \ | ||
composer update -nq --no-progress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters