This container has been created for Google Cloud Run fully managed:
- It listen to port 8080
- No SSL as provided out of the box from Google Cloud Run
- All logs forwarded to the console
Created from bitnami/minideb and overloaded with:
- Apache 2.4 and ModSecurity (Including OWASP ModSecurity CRS)
- PHP 7.3 and PHP-FPM
- Node.js 12 and Yarn latest
Create the file /entrypoint-extra.sh and add in it the extra startup commands to be executed.
They will be executed before starting Apache.
Refer to Cloud Run documentation for deploying to Google Cloud Run.
FROM nicolabello/apache-php-node-for-cloud-run
# Add vhost
COPY ./app-name-vhost.conf /vhosts/
# Copy app
COPY ./dist/ /apps/app-name/<VirtualHost *:8080>
DocumentRoot "/apps/app-name"
# Enable PHP-FPM
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/apps/app-name/$1
# Enable ModSecurity
SecRuleEngine On
</VirtualHost>
Licensed under the terms of GNU General Public License Version 2 or later.