diff --git a/internal/php/__snapshots__/template_test.snap b/internal/php/__snapshots__/template_test.snap index a076181a..f2f21ef5 100755 --- a/internal/php/__snapshots__/template_test.snap +++ b/internal/php/__snapshots__/template_test.snap @@ -29,36 +29,23 @@ CMD nginx; php-fpm --- [TestTemplate/8.1-none-nginx-0 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.1-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -\ -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www +COPY --chown=www-data:www-data . /var/www/public +WORKDIR /var/www/public RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm --- [TestTemplate/8.1-none-nginx,owo-1 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.1-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* @@ -66,8 +53,8 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ RUN chmod +x /usr/local/bin/install-php-extensions && sync -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www +COPY --chown=www-data:www-data . /var/www/public +WORKDIR /var/www/public RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default @@ -89,7 +76,7 @@ CMD nginx; php-fpm [TestTemplate/7-thinkphp-nginx-1 - 1] FROM docker.io/library/php:7-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -116,38 +103,25 @@ CMD nginx; php-fpm --- [TestTemplate/8.1-laravel-nginx,owo-0 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.1-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - COPY --chown=www-data:www-data . /var/www WORKDIR /var/www RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm --- [TestTemplate/8.2-laravel-nginx-1 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.2-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -174,58 +148,32 @@ CMD nginx; php-fpm --- [TestTemplate/8.2-thinkphp-nginx,owo-0 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.2-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - COPY --chown=www-data:www-data . /var/www WORKDIR /var/www RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm --- [TestTemplate/8.1-none-nginx,owo-0 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.1-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www +COPY --chown=www-data:www-data . /var/www/public +WORKDIR /var/www/public RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm @@ -261,36 +209,23 @@ CMD nginx; php-fpm --- [TestTemplate/8.1-codeigniter-nginx,owo-0 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.1-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - COPY --chown=www-data:www-data . /var/www WORKDIR /var/www RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm --- [TestTemplate/8.1-codeigniter-nginx,owo-1 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.1-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* @@ -319,67 +254,41 @@ CMD nginx; php-fpm --- [TestTemplate/8.2-none-nginx,owo-0 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.2-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www +COPY --chown=www-data:www-data . /var/www/public +WORKDIR /var/www/public RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm --- [TestTemplate/8.1-thinkphp-nginx,owo-0 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.1-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - COPY --chown=www-data:www-data . /var/www WORKDIR /var/www RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm --- [TestTemplate/8.2-codeigniter-nginx-1 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.2-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -406,42 +315,25 @@ CMD nginx; php-fpm --- [TestTemplate/8.2-none-nginx-0 - 1] -FROM docker.io/library/php:7-fpm - -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +FROM docker.io/library/php:8.2-fpm -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www +COPY --chown=www-data:www-data . /var/www/public +WORKDIR /var/www/public RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm --- [TestTemplate/8.2-laravel-nginx-0 - 1] -FROM docker.io/library/php:7-fpm - -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +FROM docker.io/library/php:8.2-fpm -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* COPY --chown=www-data:www-data . /var/www WORKDIR /var/www @@ -449,22 +341,13 @@ WORKDIR /var/www RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm --- [TestTemplate/8.1-laravel-nginx,owo-1 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.1-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* @@ -493,13 +376,9 @@ CMD nginx; php-fpm --- [TestTemplate/8.2-codeigniter-nginx-0 - 1] -FROM docker.io/library/php:7-fpm - -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +FROM docker.io/library/php:8.2-fpm -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* COPY --chown=www-data:www-data . /var/www WORKDIR /var/www @@ -507,24 +386,15 @@ WORKDIR /var/www RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm --- [TestTemplate/8.2-thinkphp-nginx-1 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.2-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -551,16 +421,16 @@ CMD nginx; php-fpm --- [TestTemplate/8.2-none-nginx-1 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.2-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ RUN chmod +x /usr/local/bin/install-php-extensions && sync -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www +COPY --chown=www-data:www-data . /var/www/public +WORKDIR /var/www/public RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default @@ -584,25 +454,12 @@ FROM docker.io/library/php:7-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - COPY --chown=www-data:www-data . /var/www WORKDIR /var/www RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm @@ -642,34 +499,21 @@ FROM docker.io/library/php:7-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - COPY --chown=www-data:www-data . /var/www WORKDIR /var/www RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm --- [TestTemplate/8.1-codeigniter-nginx-1 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.1-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -725,13 +569,9 @@ CMD nginx; php-fpm --- [TestTemplate/8.1-thinkphp-nginx-0 - 1] -FROM docker.io/library/php:7-fpm - -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +FROM docker.io/library/php:8.1-fpm -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* COPY --chown=www-data:www-data . /var/www WORKDIR /var/www @@ -739,15 +579,6 @@ WORKDIR /var/www RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm @@ -758,34 +589,21 @@ FROM docker.io/library/php:7-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - COPY --chown=www-data:www-data . /var/www WORKDIR /var/www RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm --- [TestTemplate/8.1-laravel-nginx-1 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.1-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -812,9 +630,9 @@ CMD nginx; php-fpm --- [TestTemplate/8.1-thinkphp-nginx-1 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.1-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -841,7 +659,7 @@ CMD nginx; php-fpm --- [TestTemplate/8.1-thinkphp-nginx,owo-1 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.1-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* @@ -870,13 +688,9 @@ CMD nginx; php-fpm --- [TestTemplate/8.1-codeigniter-nginx-0 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.1-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* - -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* COPY --chown=www-data:www-data . /var/www WORKDIR /var/www @@ -884,57 +698,31 @@ WORKDIR /var/www RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm --- [TestTemplate/8.2-laravel-nginx,owo-0 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.2-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - COPY --chown=www-data:www-data . /var/www WORKDIR /var/www RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm --- [TestTemplate/8.1-laravel-nginx-0 - 1] -FROM docker.io/library/php:7-fpm - -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +FROM docker.io/library/php:8.1-fpm -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* COPY --chown=www-data:www-data . /var/www WORKDIR /var/www @@ -942,22 +730,13 @@ WORKDIR /var/www RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm --- [TestTemplate/8.2-laravel-nginx,owo-1 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.2-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* @@ -986,16 +765,16 @@ CMD nginx; php-fpm --- [TestTemplate/8.1-none-nginx-1 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.1-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ RUN chmod +x /usr/local/bin/install-php-extensions && sync -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www +COPY --chown=www-data:www-data . /var/www/public +WORKDIR /var/www/public RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default @@ -1017,14 +796,14 @@ CMD nginx; php-fpm [TestTemplate/7-none-nginx-1 - 1] FROM docker.io/library/php:7-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ RUN chmod +x /usr/local/bin/install-php-extensions && sync -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www +COPY --chown=www-data:www-data . /var/www/public +WORKDIR /var/www/public RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default @@ -1052,8 +831,8 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ RUN chmod +x /usr/local/bin/install-php-extensions && sync -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www +COPY --chown=www-data:www-data . /var/www/public +WORKDIR /var/www/public RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default @@ -1077,25 +856,12 @@ FROM docker.io/library/php:7-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www +COPY --chown=www-data:www-data . /var/www/public +WORKDIR /var/www/public RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm @@ -1104,11 +870,7 @@ CMD nginx; php-fpm [TestTemplate/7-thinkphp-nginx-0 - 1] FROM docker.io/library/php:7-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* - -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* COPY --chown=www-data:www-data . /var/www WORKDIR /var/www @@ -1116,28 +878,15 @@ WORKDIR /var/www RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm --- [TestTemplate/8.2-thinkphp-nginx-0 - 1] -FROM docker.io/library/php:7-fpm - -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +FROM docker.io/library/php:8.2-fpm -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* COPY --chown=www-data:www-data . /var/www WORKDIR /var/www @@ -1145,15 +894,6 @@ WORKDIR /var/www RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm @@ -1162,7 +902,7 @@ CMD nginx; php-fpm [TestTemplate/7-codeigniter-nginx-1 - 1] FROM docker.io/library/php:7-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -1189,7 +929,7 @@ CMD nginx; php-fpm --- [TestTemplate/8.2-none-nginx,owo-1 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.2-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* @@ -1197,8 +937,8 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ RUN chmod +x /usr/local/bin/install-php-extensions && sync -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www +COPY --chown=www-data:www-data . /var/www/public +WORKDIR /var/www/public RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default @@ -1220,7 +960,7 @@ CMD nginx; php-fpm [TestTemplate/7-laravel-nginx-1 - 1] FROM docker.io/library/php:7-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -1249,11 +989,7 @@ CMD nginx; php-fpm [TestTemplate/7-codeigniter-nginx-0 - 1] FROM docker.io/library/php:7-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* - -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* COPY --chown=www-data:www-data . /var/www WORKDIR /var/www @@ -1261,15 +997,6 @@ WORKDIR /var/www RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm @@ -1278,11 +1005,7 @@ CMD nginx; php-fpm [TestTemplate/7-laravel-nginx-0 - 1] FROM docker.io/library/php:7-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* - -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* COPY --chown=www-data:www-data . /var/www WORKDIR /var/www @@ -1290,15 +1013,6 @@ WORKDIR /var/www RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm @@ -1307,34 +1021,21 @@ CMD nginx; php-fpm [TestTemplate/7-none-nginx-0 - 1] FROM docker.io/library/php:7-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* - -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www +COPY --chown=www-data:www-data . /var/www/public +WORKDIR /var/www/public RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm --- [TestTemplate/8.2-codeigniter-nginx,owo-1 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.2-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* @@ -1363,7 +1064,7 @@ CMD nginx; php-fpm --- [TestTemplate/8.2-thinkphp-nginx,owo-1 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.2-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* @@ -1392,39 +1093,25 @@ CMD nginx; php-fpm --- [TestTemplate/8.2-codeigniter-nginx,owo-0 - 1] -FROM docker.io/library/php:7-fpm +FROM docker.io/library/php:8.2-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - COPY --chown=www-data:www-data . /var/www WORKDIR /var/www RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD nginx; php-fpm --- [TestTemplate/7-laravel-nginx-1+os- - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl +FROM docker.io/library/php:7-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -1433,6 +1120,9 @@ RUN chmod +x /usr/local/bin/install-php-extensions && sync COPY --chown=www-data:www-data . /var/www WORKDIR /var/www +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + RUN echo '#!/bin/sh\n\ extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ for ext in $extensions; do\n\ @@ -1443,13 +1133,12 @@ done' > /usr/local/bin/install_php_extensions.sh \ && /usr/local/bin/install_php_extensions.sh RUN composer install --optimize-autoloader --no-dev -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] +CMD nginx; php-fpm --- [TestTemplate/8.1-laravel-nginx,owo-1+os- - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl +FROM docker.io/library/php:8.1-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* @@ -1460,6 +1149,9 @@ RUN chmod +x /usr/local/bin/install-php-extensions && sync COPY --chown=www-data:www-data . /var/www WORKDIR /var/www +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + RUN echo '#!/bin/sh\n\ extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ for ext in $extensions; do\n\ @@ -1470,147 +1162,90 @@ done' > /usr/local/bin/install_php_extensions.sh \ && /usr/local/bin/install_php_extensions.sh RUN composer install --optimize-autoloader --no-dev -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] +CMD nginx; php-fpm --- [TestTemplate/8.2-laravel-nginx-0+os- - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl - -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +FROM docker.io/library/php:8.2-fpm -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* COPY --chown=www-data:www-data . /var/www WORKDIR /var/www -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] + +CMD nginx; php-fpm --- [TestTemplate/8.2-laravel-nginx-0+os-roadrunner - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl - -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +FROM docker.io/library/php:8.2-fpm -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* COPY --chown=www-data:www-data . /var/www WORKDIR /var/www -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] + +CMD nginx; php-fpm --- [TestTemplate/8.1-laravel-nginx,owo-0+os-swoole - 1] -FROM docker.io/phpswoole/swoole:php7 +FROM docker.io/phpswoole/swoole:php8.1 RUN docker-php-ext-install pcntl RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - COPY --chown=www-data:www-data . /var/www WORKDIR /var/www -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] --- [TestTemplate/8.1-laravel-nginx,owo-0+os-roadrunner - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl +FROM docker.io/library/php:8.1-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - COPY --chown=www-data:www-data . /var/www WORKDIR /var/www -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] + +CMD nginx; php-fpm --- [TestTemplate/8.1-laravel-nginx,owo-0+os- - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl +FROM docker.io/library/php:8.1-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - COPY --chown=www-data:www-data . /var/www WORKDIR /var/www -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] + +CMD nginx; php-fpm --- [TestTemplate/8.1-laravel-nginx,owo-1+os-swoole - 1] -FROM docker.io/phpswoole/swoole:php7 +FROM docker.io/phpswoole/swoole:php8.1 RUN docker-php-ext-install pcntl RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* @@ -1637,8 +1272,7 @@ CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--p --- [TestTemplate/8.1-laravel-nginx,owo-1+os-roadrunner - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl +FROM docker.io/library/php:8.1-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* @@ -1649,6 +1283,9 @@ RUN chmod +x /usr/local/bin/install-php-extensions && sync COPY --chown=www-data:www-data . /var/www WORKDIR /var/www +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + RUN echo '#!/bin/sh\n\ extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ for ext in $extensions; do\n\ @@ -1659,14 +1296,15 @@ done' > /usr/local/bin/install_php_extensions.sh \ && /usr/local/bin/install_php_extensions.sh RUN composer install --optimize-autoloader --no-dev -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] +CMD nginx; php-fpm --- [TestTemplate/8.2-laravel-nginx-1+os-swoole - 1] -FROM docker.io/phpswoole/swoole:php7-alpine +FROM docker.io/phpswoole/swoole:php8.2 +RUN docker-php-ext-install pcntl -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -1684,14 +1322,16 @@ done' > /usr/local/bin/install_php_extensions.sh \ && chmod +x /usr/local/bin/install_php_extensions.sh \ && /usr/local/bin/install_php_extensions.sh RUN composer install --optimize-autoloader --no-dev -CMD php artisan octane:start --server=swoole + +CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] + --- [TestTemplate/8.1-laravel-nginx-1+os-swoole - 1] -FROM docker.io/phpswoole/swoole:php7 +FROM docker.io/phpswoole/swoole:php8.1 RUN docker-php-ext-install pcntl -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -1715,10 +1355,9 @@ CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--p --- [TestTemplate/8.1-laravel-nginx-1+os-roadrunner - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl +FROM docker.io/library/php:8.1-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -1727,6 +1366,9 @@ RUN chmod +x /usr/local/bin/install-php-extensions && sync COPY --chown=www-data:www-data . /var/www WORKDIR /var/www +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + RUN echo '#!/bin/sh\n\ extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ for ext in $extensions; do\n\ @@ -1737,96 +1379,60 @@ done' > /usr/local/bin/install_php_extensions.sh \ && /usr/local/bin/install_php_extensions.sh RUN composer install --optimize-autoloader --no-dev -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] +CMD nginx; php-fpm --- [TestTemplate/8.1-laravel-nginx-0+os- - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl +FROM docker.io/library/php:8.1-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* - -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* COPY --chown=www-data:www-data . /var/www WORKDIR /var/www -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] + +CMD nginx; php-fpm --- [TestTemplate/8.1-laravel-nginx-0+os-swoole - 1] -FROM docker.io/phpswoole/swoole:php7 +FROM docker.io/phpswoole/swoole:php8.1 RUN docker-php-ext-install pcntl -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* - -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* COPY --chown=www-data:www-data . /var/www WORKDIR /var/www -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] --- [TestTemplate/8.1-laravel-nginx-0+os-roadrunner - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl - -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +FROM docker.io/library/php:8.1-fpm -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* COPY --chown=www-data:www-data . /var/www WORKDIR /var/www -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] + +CMD nginx; php-fpm --- [TestTemplate/8.1-laravel-nginx-1+os- - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl +FROM docker.io/library/php:8.1-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -1835,6 +1441,9 @@ RUN chmod +x /usr/local/bin/install-php-extensions && sync COPY --chown=www-data:www-data . /var/www WORKDIR /var/www +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + RUN echo '#!/bin/sh\n\ extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ for ext in $extensions; do\n\ @@ -1845,12 +1454,13 @@ done' > /usr/local/bin/install_php_extensions.sh \ && /usr/local/bin/install_php_extensions.sh RUN composer install --optimize-autoloader --no-dev -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] +CMD nginx; php-fpm --- [TestTemplate/8.2-laravel-nginx,owo-1+os-swoole - 1] -FROM docker.io/phpswoole/swoole:php7-alpine +FROM docker.io/phpswoole/swoole:php8.2 +RUN docker-php-ext-install pcntl RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* @@ -1870,12 +1480,13 @@ done' > /usr/local/bin/install_php_extensions.sh \ && chmod +x /usr/local/bin/install_php_extensions.sh \ && /usr/local/bin/install_php_extensions.sh RUN composer install --optimize-autoloader --no-dev -CMD php artisan octane:start --server=swoole + +CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] + --- [TestTemplate/8.2-laravel-nginx,owo-1+os-roadrunner - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl +FROM docker.io/library/php:8.2-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* @@ -1886,6 +1497,9 @@ RUN chmod +x /usr/local/bin/install-php-extensions && sync COPY --chown=www-data:www-data . /var/www WORKDIR /var/www +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + RUN echo '#!/bin/sh\n\ extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ for ext in $extensions; do\n\ @@ -1896,37 +1510,28 @@ done' > /usr/local/bin/install_php_extensions.sh \ && /usr/local/bin/install_php_extensions.sh RUN composer install --optimize-autoloader --no-dev -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] +CMD nginx; php-fpm --- [TestTemplate/7-laravel-nginx,owo-0+os- - 1] -FROM docker.io/phpswoole/swoole:php7-alpine +FROM docker.io/library/php:7-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - COPY --chown=www-data:www-data . /var/www WORKDIR /var/www -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev -CMD php artisan octane:start --server=swoole +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + + +CMD nginx; php-fpm + --- [TestTemplate/7-laravel-nginx,owo-1+os-roadrunner - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl +FROM docker.io/library/php:7-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* @@ -1937,6 +1542,9 @@ RUN chmod +x /usr/local/bin/install-php-extensions && sync COPY --chown=www-data:www-data . /var/www WORKDIR /var/www +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + RUN echo '#!/bin/sh\n\ extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ for ext in $extensions; do\n\ @@ -1947,13 +1555,12 @@ done' > /usr/local/bin/install_php_extensions.sh \ && /usr/local/bin/install_php_extensions.sh RUN composer install --optimize-autoloader --no-dev -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] +CMD nginx; php-fpm --- [TestTemplate/8.2-laravel-nginx,owo-1+os- - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl +FROM docker.io/library/php:8.2-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* @@ -1964,6 +1571,9 @@ RUN chmod +x /usr/local/bin/install-php-extensions && sync COPY --chown=www-data:www-data . /var/www WORKDIR /var/www +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + RUN echo '#!/bin/sh\n\ extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ for ext in $extensions; do\n\ @@ -1974,7 +1584,7 @@ done' > /usr/local/bin/install_php_extensions.sh \ && /usr/local/bin/install_php_extensions.sh RUN composer install --optimize-autoloader --no-dev -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] +CMD nginx; php-fpm --- @@ -2006,29 +1616,18 @@ CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--p --- [TestTemplate/7-laravel-nginx,owo-0+os-roadrunner - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl +FROM docker.io/library/php:7-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - COPY --chown=www-data:www-data . /var/www WORKDIR /var/www -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] + +CMD nginx; php-fpm --- @@ -2038,81 +1637,46 @@ RUN docker-php-ext-install pcntl RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - COPY --chown=www-data:www-data . /var/www WORKDIR /var/www -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] --- [TestTemplate/8.2-laravel-nginx,owo-0+os- - 1] -FROM docker.io/phpswoole/swoole:php7-alpine +FROM docker.io/library/php:8.2-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - COPY --chown=www-data:www-data . /var/www WORKDIR /var/www -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev -CMD php artisan octane:start --server=swoole +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + + +CMD nginx; php-fpm + --- [TestTemplate/8.2-laravel-nginx,owo-0+os-swoole - 1] -FROM docker.io/phpswoole/swoole:php7 +FROM docker.io/phpswoole/swoole:php8.2 RUN docker-php-ext-install pcntl RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - COPY --chown=www-data:www-data . /var/www WORKDIR /var/www -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] --- [TestTemplate/7-laravel-nginx,owo-1+os- - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl +FROM docker.io/library/php:7-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* @@ -2123,6 +1687,9 @@ RUN chmod +x /usr/local/bin/install-php-extensions && sync COPY --chown=www-data:www-data . /var/www WORKDIR /var/www +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + RUN echo '#!/bin/sh\n\ extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ for ext in $extensions; do\n\ @@ -2133,15 +1700,14 @@ done' > /usr/local/bin/install_php_extensions.sh \ && /usr/local/bin/install_php_extensions.sh RUN composer install --optimize-autoloader --no-dev -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] +CMD nginx; php-fpm --- [TestTemplate/8.2-laravel-nginx-1+os-roadrunner - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl +FROM docker.io/library/php:8.2-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -2150,6 +1716,9 @@ RUN chmod +x /usr/local/bin/install-php-extensions && sync COPY --chown=www-data:www-data . /var/www WORKDIR /var/www +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + RUN echo '#!/bin/sh\n\ extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ for ext in $extensions; do\n\ @@ -2160,34 +1729,23 @@ done' > /usr/local/bin/install_php_extensions.sh \ && /usr/local/bin/install_php_extensions.sh RUN composer install --optimize-autoloader --no-dev -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] +CMD nginx; php-fpm --- [TestTemplate/7-laravel-nginx-0+os-roadrunner - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl - -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +FROM docker.io/library/php:7-fpm -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* COPY --chown=www-data:www-data . /var/www WORKDIR /var/www -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] + +CMD nginx; php-fpm --- @@ -2195,34 +1753,20 @@ CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--p FROM docker.io/phpswoole/swoole:php7 RUN docker-php-ext-install pcntl -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* - -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* COPY --chown=www-data:www-data . /var/www WORKDIR /var/www -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] --- [TestTemplate/8.2-laravel-nginx-1+os- - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl +FROM docker.io/library/php:8.2-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -2231,6 +1775,9 @@ RUN chmod +x /usr/local/bin/install-php-extensions && sync COPY --chown=www-data:www-data . /var/www WORKDIR /var/www +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + RUN echo '#!/bin/sh\n\ extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ for ext in $extensions; do\n\ @@ -2241,42 +1788,61 @@ done' > /usr/local/bin/install_php_extensions.sh \ && /usr/local/bin/install_php_extensions.sh RUN composer install --optimize-autoloader --no-dev -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] +CMD nginx; php-fpm --- [TestTemplate/8.2-laravel-nginx,owo-0+os-roadrunner - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl +FROM docker.io/library/php:8.2-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync +COPY --chown=www-data:www-data . /var/www +WORKDIR /var/www + +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + + +CMD nginx; php-fpm + +--- + +[TestTemplate/8.2-laravel-nginx-0+os-swoole - 1] +FROM docker.io/phpswoole/swoole:php8.2 +RUN docker-php-ext-install pcntl + +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* COPY --chown=www-data:www-data . /var/www WORKDIR /var/www -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] --- -[TestTemplate/8.2-laravel-nginx-0+os-swoole - 1] +[TestTemplate/7-laravel-nginx-0+os- - 1] +FROM docker.io/library/php:7-fpm + +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* + +COPY --chown=www-data:www-data . /var/www +WORKDIR /var/www + +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + + +CMD nginx; php-fpm + +--- + +[TestTemplate/7-laravel-nginx-1+os-swoole - 1] FROM docker.io/phpswoole/swoole:php7 RUN docker-php-ext-install pcntl -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -2299,11 +1865,10 @@ CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--p --- -[TestTemplate/7-laravel-nginx-0+os- - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl +[TestTemplate/7-laravel-nginx-1+os-roadrunner - 1] +FROM docker.io/library/php:7-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -2312,6 +1877,9 @@ RUN chmod +x /usr/local/bin/install-php-extensions && sync COPY --chown=www-data:www-data . /var/www WORKDIR /var/www +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + RUN echo '#!/bin/sh\n\ extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ for ext in $extensions; do\n\ @@ -2322,16 +1890,64 @@ done' > /usr/local/bin/install_php_extensions.sh \ && /usr/local/bin/install_php_extensions.sh RUN composer install --optimize-autoloader --no-dev -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] +CMD nginx; php-fpm --- -[TestTemplate/7-laravel-nginx-1+os-swoole - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl +[TestTemplate/8.1-none-nginx-0 - 1] +FROM docker.io/library/php:8.1-fpm + +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* + +COPY --chown=www-data:www-data . /var/www/public +WORKDIR /var/www/public + +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + + +CMD nginx; php-fpm + +--- + +[TestTemplate/8.1-none-nginx-0 - 1] +FROM docker.io/library/php:8.1-fpm + +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* + +COPY --chown=www-data:www-data . /var/www/public +WORKDIR /var/www/public + +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + + +CMD nginx; php-fpm + +--- + +[TestTemplate/7-laravel-nginx,owo-0+os- - 1] +FROM docker.io/library/php:7-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +COPY --chown=www-data:www-data . /var/www +WORKDIR /var/www + +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + + +CMD nginx; php-fpm + +--- + +[TestTemplate/8.2-laravel-nginx-1+os-swoole - 1] +FROM docker.io/phpswoole/swoole:php8.2 +RUN docker-php-ext-install pcntl + +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* + RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ RUN chmod +x /usr/local/bin/install-php-extensions && sync @@ -2353,8 +1969,8 @@ CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--p --- -[TestTemplate/7-laravel-nginx-1+os-roadrunner - 1] -FROM docker.io/phpswoole/swoole:php7 +[TestTemplate/8.2-laravel-nginx,owo-1+os-swoole - 1] +FROM docker.io/phpswoole/swoole:php8.2 RUN docker-php-ext-install pcntl RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* @@ -2380,11 +1996,75 @@ CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--p --- -[TestTemplate/8.1-none-nginx-0 - 1] +[TestTemplate/8.2-laravel-nginx,owo-0+os- - 1] +FROM docker.io/library/php:8.2-fpm + +RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* + +COPY --chown=www-data:www-data . /var/www +WORKDIR /var/www + +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + + +CMD nginx; php-fpm + +--- + +[TestTemplate/7-laravel-nginx,owo-0+os-roadrunner - 1] FROM docker.io/library/php:7-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +COPY --chown=www-data:www-data . /var/www +WORKDIR /var/www + +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + + +CMD nginx; php-fpm + +--- + +[TestTemplate/8.2-codeigniter-nginx,owo-0 - 1] +FROM docker.io/library/php:8.2-fpm + +RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* + +COPY --chown=www-data:www-data . /var/www +WORKDIR /var/www + +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + + +CMD nginx; php-fpm + +--- + +[TestTemplate/8.1-codeigniter-nginx,owo-0 - 1] +FROM docker.io/library/php:8.1-fpm + +RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* + +COPY --chown=www-data:www-data . /var/www +WORKDIR /var/www + +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + + +CMD nginx; php-fpm + +--- + +[TestTemplate/8.1-laravel-nginx,owo-1+os-roadrunner - 1] +FROM docker.io/library/php:8.1-fpm + +RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* + RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ RUN chmod +x /usr/local/bin/install-php-extensions && sync @@ -2409,11 +2089,27 @@ CMD nginx; php-fpm --- -[TestTemplate/8.1-none-nginx-0 - 1] +[TestTemplate/7-laravel-nginx,owo-0 - 1] FROM docker.io/library/php:7-fpm RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +COPY --chown=www-data:www-data . /var/www +WORKDIR /var/www + +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + + +CMD nginx; php-fpm + +--- + +[TestTemplate/8.1-laravel-nginx-1 - 1] +FROM docker.io/library/php:8.1-fpm + +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* + RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ RUN chmod +x /usr/local/bin/install-php-extensions && sync @@ -2438,11 +2134,10 @@ CMD nginx; php-fpm --- -[TestTemplate/7-laravel-nginx,owo-0+os- - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl +[TestTemplate/8.1-laravel-nginx-1+os-roadrunner - 1] +FROM docker.io/library/php:8.1-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -2451,6 +2146,9 @@ RUN chmod +x /usr/local/bin/install-php-extensions && sync COPY --chown=www-data:www-data . /var/www WORKDIR /var/www +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + RUN echo '#!/bin/sh\n\ extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ for ext in $extensions; do\n\ @@ -2461,15 +2159,15 @@ done' > /usr/local/bin/install_php_extensions.sh \ && /usr/local/bin/install_php_extensions.sh RUN composer install --optimize-autoloader --no-dev -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] +CMD nginx; php-fpm --- -[TestTemplate/8.2-laravel-nginx-1+os-swoole - 1] -FROM docker.io/phpswoole/swoole:php7 +[TestTemplate/8.1-laravel-nginx-1+os-swoole - 1] +FROM docker.io/phpswoole/swoole:php8.1 RUN docker-php-ext-install pcntl -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -2492,7 +2190,7 @@ CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--p --- -[TestTemplate/8.2-laravel-nginx,owo-1+os-swoole - 1] +[TestTemplate/7-laravel-nginx,owo-1+os-swoole - 1] FROM docker.io/phpswoole/swoole:php7 RUN docker-php-ext-install pcntl @@ -2519,11 +2217,10 @@ CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--p --- -[TestTemplate/8.2-laravel-nginx,owo-0+os- - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl +[TestTemplate/8.2-laravel-nginx-1 - 1] +FROM docker.io/library/php:8.2-fpm -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ @@ -2532,6 +2229,9 @@ RUN chmod +x /usr/local/bin/install-php-extensions && sync COPY --chown=www-data:www-data . /var/www WORKDIR /var/www +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + RUN echo '#!/bin/sh\n\ extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ for ext in $extensions; do\n\ @@ -2542,6 +2242,68 @@ done' > /usr/local/bin/install_php_extensions.sh \ && /usr/local/bin/install_php_extensions.sh RUN composer install --optimize-autoloader --no-dev +CMD nginx; php-fpm + +--- + +[TestTemplate/8.2-laravel-nginx-0+os-roadrunner - 1] +FROM docker.io/library/php:8.2-fpm + +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* + +COPY --chown=www-data:www-data . /var/www +WORKDIR /var/www + +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + + +CMD nginx; php-fpm + +--- + +[TestTemplate/7-laravel-nginx-0+os-swoole - 1] +FROM docker.io/phpswoole/swoole:php7 +RUN docker-php-ext-install pcntl + +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* + +COPY --chown=www-data:www-data . /var/www +WORKDIR /var/www + + CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] --- + +[TestTemplate/8.2-laravel-nginx-0 - 1] +FROM docker.io/library/php:8.2-fpm + +RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* + +COPY --chown=www-data:www-data . /var/www +WORKDIR /var/www + +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + + +CMD nginx; php-fpm + +--- + +[TestTemplate/8.2-laravel-nginx,owo-0+os-roadrunner - 1] +FROM docker.io/library/php:8.2-fpm + +RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* + +COPY --chown=www-data:www-data . /var/www +WORKDIR /var/www + +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default + + +CMD nginx; php-fpm + +---