-
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
1 parent
1239694
commit db7de1f
Showing
3 changed files
with
1,990 additions
and
0 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,49 @@ | ||
FROM php:fpm-alpine | ||
|
||
RUN apk add --update \ | ||
icu icu-dev \ | ||
gettext gettext-dev \ | ||
jq figlet ncurses \ | ||
zip libzip libzip-dev \ | ||
freetype freetype-dev \ | ||
libjpeg-turbo libjpeg-turbo-dev \ | ||
libpng libpng-dev \ | ||
libmcrypt libmcrypt-dev \ | ||
gcc make libc-dev autoconf \ | ||
git ruby-full npm composer python g++ && \ | ||
docker-php-ext-configure gd \ | ||
--with-gd \ | ||
--with-freetype-dir=/usr/include/ \ | ||
--with-png-dir=/usr/include/ \ | ||
--with-jpeg-dir=/usr/include/ && \ | ||
docker-php-ext-configure zip \ | ||
--with-libzip && \ | ||
docker-php-ext-install \ | ||
intl gettext \ | ||
mysqli pdo_mysql \ | ||
exif \ | ||
gd \ | ||
zip \ | ||
>/dev/null && \ | ||
pecl install mcrypt-1.0.1 && \ | ||
echo "extension=mcrypt.so" > /usr/local/etc/php/conf.d/mcrypt.ini && \ | ||
apk del \ | ||
icu-dev gettext-dev \ | ||
freetype-dev libjpeg-turbo-dev libpng-dev \ | ||
libzip-dev \ | ||
libmcrypt-dev \ | ||
autoconf && \ | ||
npm i npm@latest -g && \ | ||
composer self-update && \ | ||
gem install sass -v 3.4.25 | ||
|
||
COPY ./presetup /usr/local/bin | ||
COPY ./php.ini /usr/local/etc/php/ | ||
RUN chmod +x /usr/local/bin/presetup | ||
|
||
# Set work directory to the web host path | ||
WORKDIR /var/www | ||
|
||
# Run the configsetup file on container start | ||
ENTRYPOINT ["/usr/local/bin/presetup"] | ||
CMD ["php-fpm"] |
Oops, something went wrong.