-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
19 changed files
with
409 additions
and
7 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
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,52 @@ | ||
FROM node:22-alpine | ||
|
||
# Install packages for headless chrome | ||
RUN apk update \ | ||
&& \ | ||
apk add --no-cache nmap \ | ||
&& \ | ||
echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories \ | ||
&& \ | ||
echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories \ | ||
&& \ | ||
apk update \ | ||
&& \ | ||
apk add --no-cache \ | ||
# Packages needed for npm install of mozjpeg & cwebp, can't --virtual and apk del later | ||
# Pre-builts do not work on alpine for either: | ||
# ref: https://github.com/imagemin/imagemin/issues/168 | ||
# ref: https://github.com/imagemin/cwebp-bin/issues/27 | ||
autoconf \ | ||
automake \ | ||
build-base \ | ||
g++ \ | ||
gcc \ | ||
glu \ | ||
libc6-compat \ | ||
libtool \ | ||
libpng-dev \ | ||
libxxf86vm \ | ||
make \ | ||
nasm \ | ||
# Misc packages | ||
nano \ | ||
# Image optimization packages | ||
gifsicle \ | ||
jpegoptim \ | ||
libpng-dev \ | ||
libwebp-tools \ | ||
libjpeg-turbo-dev \ | ||
libjpeg-turbo-utils \ | ||
optipng \ | ||
pngquant \ | ||
# Headless Chrome packages | ||
chromium \ | ||
harfbuzz \ | ||
"freetype>2.8" \ | ||
ttf-freefont \ | ||
nss | ||
|
||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true | ||
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser | ||
ENV CHROME_BIN /usr/bin/chromium-browser | ||
ENV LIGHTHOUSE_CHROMIUM_PATH /usr/bin/chromium-browser |
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,46 @@ | ||
FROM nystudio107/php-prod-base:8.3-alpine | ||
|
||
# Install packages | ||
RUN set -eux; \ | ||
# Packages needed only for build | ||
apk add --no-cache --virtual .build-deps \ | ||
# Dependencies required for running "phpize"; the $PHPIZE_DEPS env var is inherited from the parent image | ||
# These get automatically installed and removed by "docker-php-ext-*" (unless they're already installed) | ||
$PHPIZE_DEPS \ | ||
# Build deps | ||
autoconf \ | ||
dpkg-dev \ | ||
dpkg \ | ||
file \ | ||
g++ \ | ||
gcc \ | ||
libc-dev \ | ||
make \ | ||
pkgconf \ | ||
re2c \ | ||
libtool \ | ||
linux-headers \ | ||
wget \ | ||
&& \ | ||
# pecl PHP extensions | ||
pecl install \ | ||
xdebug \ | ||
&& \ | ||
# Enable PHP extensions | ||
docker-php-ext-enable \ | ||
xdebug \ | ||
&& \ | ||
# Remove the build deps | ||
apk del .build-deps \ | ||
&& \ | ||
# Clean out directories that don't need to be part of the image | ||
rm -rf /tmp/* /var/tmp/* | ||
|
||
# Copy the `xdebug.ini` file into place for xdebug | ||
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini | ||
|
||
# Copy the `zzz-docker-php.ini` file into place for php | ||
COPY zzz-docker-php.ini /usr/local/etc/php/conf.d/ | ||
|
||
# Copy the `zzz-docker-php-fpm.conf` file into place for php-fpm | ||
COPY zzz-docker-php-fpm.conf /usr/local/etc/php-fpm.d/ |
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 @@ | ||
xdebug.mode=develop,debug,profile,coverage | ||
xdebug.start_with_request=trigger | ||
xdebug.client_host=host.docker.internal | ||
xdebug.output_dir = "/var/www/project/cms/storage/logs" |
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 @@ | ||
[www] | ||
pm.max_children = 5 | ||
pm.process_idle_timeout = 30s | ||
pm.max_requests = 1000 |
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,9 @@ | ||
[php] | ||
memory_limit=256M | ||
max_execution_time=300 | ||
max_input_time=300 | ||
max_input_vars=5000 | ||
upload_max_filesize=100M | ||
post_max_size=100M | ||
[opcache] | ||
opcache.enable=0 |
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,46 @@ | ||
FROM nystudio107/php-prod-base:8.4-alpine | ||
|
||
# Install packages | ||
RUN set -eux; \ | ||
# Packages needed only for build | ||
apk add --no-cache --virtual .build-deps \ | ||
# Dependencies required for running "phpize"; the $PHPIZE_DEPS env var is inherited from the parent image | ||
# These get automatically installed and removed by "docker-php-ext-*" (unless they're already installed) | ||
$PHPIZE_DEPS \ | ||
# Build deps | ||
autoconf \ | ||
dpkg-dev \ | ||
dpkg \ | ||
file \ | ||
g++ \ | ||
gcc \ | ||
libc-dev \ | ||
make \ | ||
pkgconf \ | ||
re2c \ | ||
libtool \ | ||
linux-headers \ | ||
wget \ | ||
&& \ | ||
# pecl PHP extensions | ||
pecl install \ | ||
xdebug \ | ||
&& \ | ||
# Enable PHP extensions | ||
docker-php-ext-enable \ | ||
xdebug \ | ||
&& \ | ||
# Remove the build deps | ||
apk del .build-deps \ | ||
&& \ | ||
# Clean out directories that don't need to be part of the image | ||
rm -rf /tmp/* /var/tmp/* | ||
|
||
# Copy the `xdebug.ini` file into place for xdebug | ||
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini | ||
|
||
# Copy the `zzz-docker-php.ini` file into place for php | ||
COPY zzz-docker-php.ini /usr/local/etc/php/conf.d/ | ||
|
||
# Copy the `zzz-docker-php-fpm.conf` file into place for php-fpm | ||
COPY zzz-docker-php-fpm.conf /usr/local/etc/php-fpm.d/ |
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 @@ | ||
xdebug.mode=develop,debug,profile,coverage | ||
xdebug.start_with_request=trigger | ||
xdebug.client_host=host.docker.internal | ||
xdebug.output_dir = "/var/www/project/cms/storage/logs" |
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 @@ | ||
[www] | ||
pm.max_children = 5 | ||
pm.process_idle_timeout = 30s | ||
pm.max_requests = 1000 |
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,9 @@ | ||
[php] | ||
memory_limit=256M | ||
max_execution_time=300 | ||
max_input_time=300 | ||
max_input_vars=5000 | ||
upload_max_filesize=100M | ||
post_max_size=100M | ||
[opcache] | ||
opcache.enable=0 |
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,4 +1,4 @@ | ||
FROM php:8.2-fpm-alpine3.18 | ||
FROM php:8.2-fpm-alpine | ||
|
||
# Install packages | ||
RUN set -eux; \ | ||
|
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,95 @@ | ||
FROM php:8.3-fpm-alpine | ||
|
||
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ | ||
|
||
# Install packages | ||
RUN set -eux; \ | ||
# Packages needed only for build | ||
apk add --no-cache --virtual .build-deps \ | ||
# Dependencies required for running "phpize"; the $PHPIZE_DEPS env var is inherited from the parent image | ||
# These get automatically installed and removed by "docker-php-ext-*" (unless they're already installed) | ||
$PHPIZE_DEPS \ | ||
# Build deps | ||
autoconf \ | ||
dpkg-dev \ | ||
dpkg \ | ||
file \ | ||
g++ \ | ||
gcc \ | ||
libc-dev \ | ||
make \ | ||
pkgconf \ | ||
re2c \ | ||
libtool \ | ||
linux-headers \ | ||
wget \ | ||
&& \ | ||
# Packages to install | ||
apk add --no-cache \ | ||
bzip2-dev \ | ||
ca-certificates \ | ||
curl \ | ||
fcgi \ | ||
freetype-dev \ | ||
gettext-dev \ | ||
icu-dev \ | ||
icu-data-full \ | ||
imagemagick-dev \ | ||
jpeg-dev \ | ||
libpng-dev \ | ||
libwebp-dev \ | ||
libzip-dev \ | ||
libtool \ | ||
libxml2-dev \ | ||
libzip-dev \ | ||
oniguruma-dev \ | ||
openssl-dev \ | ||
unzip \ | ||
&& \ | ||
# pecl PHP extensions | ||
pecl install \ | ||
redis \ | ||
&& \ | ||
# Configure PHP extensions | ||
docker-php-ext-configure \ | ||
# ref: https://github.com/docker-library/php/issues/920#issuecomment-562864296 | ||
gd --enable-gd --with-freetype --with-jpeg --with-webp \ | ||
&& \ | ||
install-php-extensions \ | ||
gmagick \ | ||
&& \ | ||
# Install PHP extensions | ||
docker-php-ext-install -j$(nproc) \ | ||
bcmath \ | ||
bz2 \ | ||
exif \ | ||
ftp \ | ||
gettext \ | ||
gd \ | ||
intl \ | ||
mbstring \ | ||
opcache \ | ||
pdo \ | ||
shmop \ | ||
sockets \ | ||
sysvmsg \ | ||
sysvsem \ | ||
sysvshm \ | ||
zip \ | ||
&& \ | ||
# Enable PHP extensions | ||
docker-php-ext-enable \ | ||
gmagick \ | ||
redis \ | ||
&& \ | ||
# Remove the build deps | ||
apk del .build-deps \ | ||
&& \ | ||
# Clean out directories that don't need to be part of the image | ||
rm -rf /tmp/* /var/tmp/* | ||
|
||
# Copy the `zzz-docker-php.ini` file into place for php | ||
COPY zzz-docker-php.ini /usr/local/etc/php/conf.d/ | ||
|
||
# Copy the `zzz-docker-php-fpm.conf` file into place for php-fpm | ||
COPY zzz-docker-php-fpm.conf /usr/local/etc/php-fpm.d/ |
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 @@ | ||
[www] | ||
pm.max_children = 10 | ||
pm.process_idle_timeout = 30s | ||
pm.max_requests = 1000 |
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,13 @@ | ||
[php] | ||
memory_limit=256M | ||
max_execution_time=300 | ||
max_input_time=300 | ||
max_input_vars=5000 | ||
upload_max_filesize=100M | ||
post_max_size=100M | ||
[opcache] | ||
opcache.enable=1 | ||
opcache.revalidate_freq=0 | ||
opcache.validate_timestamps=1 | ||
opcache.jit_buffer_size=100M | ||
opcache.jit=tracing |
Oops, something went wrong.