-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
247 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
ARG VERSION | ||
ARG BASE_IMAGE | ||
|
||
FROM php:$VERSION-$BASE_IMAGE | ||
|
||
ARG VERSION | ||
ARG DIRECTORY="tags/${VERSION}" | ||
ARG EXECUTABLE="extentions.sh" | ||
ARG TAG_FILE="${DIRECTORY}/${EXECUTABLE}" | ||
|
||
LABEL maintainer="Norby Baruani <[email protected]/>" | ||
|
||
RUN apk add --no-cache --upgrade bash | ||
|
||
COPY tags tags | ||
|
||
RUN chmod +x $TAG_FILE | ||
RUN ./${TAG_FILE} | ||
|
||
RUN rm -rf tags | ||
|
||
# DIR | ||
WORKDIR /var/www/app | ||
|
||
CMD ["php-fpm"] |
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,7 +1,9 @@ | ||
# PHP FPM-Alpine | ||
[](https://travis-ci.org/norbybaru/docker-php-alpine) | ||
|
||
# Tags | ||
|
||
# Local Build | ||
```bash | ||
REPO_NAME=norby/php-alpine BASE_IMAGE=fpm-alpine VERSION=7.4 ./hooks/build.sh | ||
`` | ||
``` |
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
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
|
||
set -eux \ | ||
&& apk update \ | ||
&& apk upgrade \ | ||
&& apk add --no-cache --virtual .build_deps \ | ||
$PHPIZE_DEPS \ | ||
curl-dev \ | ||
imagemagick-dev \ | ||
libtool \ | ||
libxml2-dev \ | ||
make \ | ||
gcc > /dev/null \ | ||
&& apk add --no-cache \ | ||
zlib-dev \ | ||
libzip-dev \ | ||
curl \ | ||
imagemagick \ | ||
mysql-client \ | ||
libintl > /dev/null \ | ||
libpng-dev \ | ||
icu-dev \ | ||
icu \ | ||
vim \ | ||
unzip \ | ||
composer \ | ||
nodejs \ | ||
bash > /dev/null \ | ||
&& docker-php-ext-configure \ | ||
zip --with-libzip > /dev/null \ | ||
&& docker-php-ext-install \ | ||
curl \ | ||
iconv \ | ||
mbstring \ | ||
pdo \ | ||
pdo_mysql \ | ||
mysqli \ | ||
pcntl \ | ||
tokenizer \ | ||
xml \ | ||
zip \ | ||
intl \ | ||
ctype \ | ||
bcmath \ | ||
json \ | ||
gd > /dev/null \ | ||
&& pecl install \ | ||
imagick > /dev/null \ | ||
&& docker-php-ext-enable \ | ||
imagick \ | ||
mysqli > /dev/null \ | ||
&& apk del --no-cache -f .build_deps \ | ||
&& rm -f /var/cache/apk/* |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
|
||
set -eux \ | ||
&& apk update \ | ||
&& apk upgrade \ | ||
&& apk add --no-cache --virtual .build_deps \ | ||
$PHPIZE_DEPS \ | ||
curl-dev \ | ||
imagemagick-dev \ | ||
libtool \ | ||
libxml2-dev \ | ||
make \ | ||
gcc > /dev/null \ | ||
&& apk add --no-cache \ | ||
zlib-dev \ | ||
libzip-dev \ | ||
curl \ | ||
imagemagick \ | ||
mysql-client \ | ||
libintl > /dev/null \ | ||
libpng-dev \ | ||
icu-dev \ | ||
icu \ | ||
vim \ | ||
unzip \ | ||
composer \ | ||
nodejs \ | ||
bash > /dev/null \ | ||
&& docker-php-ext-configure \ | ||
zip --with-libzip > /dev/null \ | ||
&& docker-php-ext-install \ | ||
curl \ | ||
iconv \ | ||
mbstring \ | ||
pdo \ | ||
pdo_mysql \ | ||
mysqli \ | ||
pcntl \ | ||
tokenizer \ | ||
xml \ | ||
zip \ | ||
intl \ | ||
ctype \ | ||
bcmath \ | ||
json \ | ||
gd > /dev/null \ | ||
&& pecl install \ | ||
imagick > /dev/null \ | ||
&& docker-php-ext-enable \ | ||
imagick \ | ||
mysqli > /dev/null \ | ||
&& apk del --no-cache -f .build_deps \ | ||
&& rm -f /var/cache/apk/* |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
|
||
set -eux \ | ||
&& apk update \ | ||
&& apk upgrade \ | ||
&& apk add --no-cache --virtual .build_deps \ | ||
$PHPIZE_DEPS \ | ||
curl-dev \ | ||
imagemagick-dev \ | ||
libtool \ | ||
libxml2-dev \ | ||
make \ | ||
gcc > /dev/null \ | ||
&& apk add --no-cache \ | ||
zlib-dev \ | ||
libzip-dev \ | ||
curl \ | ||
imagemagick \ | ||
mysql-client \ | ||
libintl > /dev/null \ | ||
libpng-dev \ | ||
icu-dev \ | ||
icu \ | ||
vim \ | ||
unzip \ | ||
composer \ | ||
nodejs \ | ||
bash > /dev/null \ | ||
&& docker-php-ext-configure \ | ||
zip --with-libzip > /dev/null \ | ||
&& docker-php-ext-install \ | ||
curl \ | ||
iconv \ | ||
mbstring \ | ||
pdo \ | ||
pdo_mysql \ | ||
mysqli \ | ||
pcntl \ | ||
tokenizer \ | ||
xml \ | ||
zip \ | ||
intl \ | ||
ctype \ | ||
bcmath \ | ||
json \ | ||
gd > /dev/null \ | ||
&& pecl install \ | ||
imagick > /dev/null \ | ||
&& docker-php-ext-enable \ | ||
imagick \ | ||
mysqli > /dev/null \ | ||
&& apk del --no-cache -f .build_deps \ | ||
&& rm -f /var/cache/apk/* |
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#!/bin/bash | ||
|
||
set -eux \ | ||
&& apk update \ | ||
&& apk upgrade \ | ||
&& apk add --no-cache --virtual .build_deps \ | ||
$PHPIZE_DEPS \ | ||
curl-dev \ | ||
freetype-dev \ | ||
imagemagick-dev \ | ||
libtool \ | ||
libxml2-dev \ | ||
libpng-dev \ | ||
libjpeg-turbo-dev \ | ||
make \ | ||
oniguruma-dev \ | ||
gcc > /dev/null \ | ||
&& apk add --no-cache \ | ||
zlib-dev \ | ||
libzip-dev \ | ||
curl \ | ||
imagemagick \ | ||
mysql-client \ | ||
libintl \ | ||
libpng \ | ||
libjpeg-turbo \ | ||
icu-dev \ | ||
icu \ | ||
freetype \ | ||
vim \ | ||
unzip \ | ||
composer \ | ||
nodejs \ | ||
bash > /dev/null \ | ||
&& docker-php-ext-configure \ | ||
gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ > /dev/null \ | ||
&& docker-php-ext-install \ | ||
mbstring \ | ||
pdo \ | ||
pdo_mysql \ | ||
mysqli \ | ||
pcntl \ | ||
tokenizer \ | ||
xml \ | ||
zip \ | ||
intl \ | ||
ctype \ | ||
bcmath \ | ||
json \ | ||
-j$(nproc) gd > /dev/null \ | ||
&& pecl install \ | ||
imagick > /dev/null \ | ||
&& docker-php-ext-enable \ | ||
gd \ | ||
imagick \ | ||
mysqli > /dev/null \ | ||
&& apk del --no-cache -f .build_deps \ | ||
&& rm -f /var/cache/apk/* |