-
Notifications
You must be signed in to change notification settings - Fork 15
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
84341da
commit 670abce
Showing
11 changed files
with
63 additions
and
223 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
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,4 @@ | ||
FROM kooldev/php:8.0 | ||
|
||
RUN apk add --update --no-cache npm yarn \ | ||
&& rm -rf /var/cache/apk/* /tmp/* |
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,4 @@ | ||
FROM kooldev/php:8.1 | ||
|
||
RUN apk add --update --no-cache npm yarn \ | ||
&& rm -rf /var/cache/apk/* /tmp/* |
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,83 +1,4 @@ | ||
FROM php:8.2-fpm-alpine | ||
FROM kooldev/php:8.2 | ||
|
||
ENV ASUSER= \ | ||
UID= \ | ||
COMPOSER_ALLOW_SUPERUSER=1 \ | ||
COMPOSER_MEMORY_LIMIT=-1 \ | ||
ENABLE_XDEBUG=false \ | ||
PHP_DATE_TIMEZONE=UTC \ | ||
PHP_MEMORY_LIMIT=256M \ | ||
PHP_MAX_INPUT_VARS=1000 \ | ||
PHP_UPLOAD_MAX_FILESIZE=25M \ | ||
PHP_POST_MAX_SIZE=25M \ | ||
PHP_MAX_EXECUTION_TIME=30 \ | ||
PHP_FPM_LISTEN=9000 \ | ||
PHP_FPM_MAX_CHILDREN=10 \ | ||
PHP_FPM_REQUEST_TERMINATE_TIMEOUT=60 \ | ||
ENTRYPOINT=entrypoint.php.sh | ||
|
||
WORKDIR /app | ||
|
||
RUN adduser -D -u 1337 kool \ | ||
&& addgroup kool www-data \ | ||
# dockerize | ||
&& curl -L https://github.com/jwilder/dockerize/releases/download/v0.6.1/dockerize-alpine-linux-amd64-v0.6.1.tar.gz | tar xz \ | ||
&& mv dockerize /usr/local/bin/dockerize \ | ||
# deps | ||
&& apk --no-cache add su-exec bash sed git openssh-client icu shadow procps \ | ||
freetype libpng libjpeg-turbo libzip-dev ghostscript imagemagick \ | ||
jpegoptim optipng pngquant gifsicle libldap \ | ||
libpq less \ | ||
# build-deps | ||
&& apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \ | ||
freetype-dev libpng-dev libjpeg-turbo-dev \ | ||
icu-dev libedit-dev libxml2-dev \ | ||
imagemagick-dev openldap-dev oniguruma-dev \ | ||
postgresql-dev \ | ||
linux-headers \ | ||
# php-ext | ||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \ | ||
&& export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" \ | ||
&& docker-php-ext-install -j$(nproc) \ | ||
bcmath \ | ||
calendar \ | ||
exif \ | ||
gd \ | ||
intl \ | ||
ldap \ | ||
mbstring \ | ||
pcntl \ | ||
pdo \ | ||
pdo_mysql \ | ||
pdo_pgsql \ | ||
soap \ | ||
xml \ | ||
zip \ | ||
sockets \ | ||
mysqli \ | ||
&& pecl install imagick redis \ | ||
&& pecl install xdebug \ | ||
&& pecl install pcov && docker-php-ext-enable pcov \ | ||
&& docker-php-ext-enable imagick \ | ||
&& docker-php-ext-enable redis \ | ||
&& cp "/usr/local/etc/php/php.ini-development" "/usr/local/etc/php/php.ini" \ | ||
# composer | ||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \ | ||
&& curl -sS https://getcomposer.org/installer | php -- --1 --install-dir=/usr/local/bin --filename=composer1 \ | ||
# symlink composer2 for BC | ||
&& ln -s /usr/local/bin/composer /usr/local/bin/composer2 \ | ||
# cleanup | ||
&& apk del .build-deps \ | ||
RUN apk add --update --no-cache npm yarn \ | ||
&& rm -rf /var/cache/apk/* /tmp/* | ||
|
||
RUN apk add --update --no-cache npm | ||
|
||
COPY kool.ini /kool/kool.tmpl | ||
COPY zz-docker.conf /kool/zz-docker.tmpl | ||
COPY entrypoint /kool/entrypoint | ||
RUN chmod +x /kool/entrypoint | ||
|
||
EXPOSE 9000 | ||
|
||
ENTRYPOINT [ "/kool/entrypoint" ] | ||
CMD [ "php-fpm" ] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,4 @@ | ||
FROM {{ $from }} | ||
|
||
RUN apk add --update --no-cache npm yarn \ | ||
&& rm -rf /var/cache/apk/* /tmp/* |
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