Skip to content
This repository has been archived by the owner on Apr 23, 2022. It is now read-only.

OCI base image for Apache2.4+mod_php74 based on Ubuntu 20.04

License

Notifications You must be signed in to change notification settings

tag1consulting/modphp74-ubuntu-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Base Dockerfile

A Dockerfile for Apache & PHP to be used as a base image for building Drupal app container images.

Images that use this as a base are responsible for:

  • Configuring VirtualHost(s)
  • Exposing port(s)

Usage

Apache must be configured in the app image definition (along with the app itself).

Example Apache VirtualHost Config

This is a generic Apache Virtualhost example that could be included in an app container built from this image:

ServerTokens Prod
ServerName localhost
Listen 8080
	
<VirtualHost *:8080>
	DocumentRoot /var/www/html

	<Directory /var/www/html >
		AllowOverride All
		Require all granted
	</Directory>
	SetEnvIf X-Forwarded-Proto https HTTPS=on
</VirtualHost>

In app's Dockerfile:

COPY apache.conf /etc/apache2/sites-available/000-default.conf
EXPOSE 8080

About

OCI base image for Apache2.4+mod_php74 based on Ubuntu 20.04

Resources

License

Stars

Watchers

Forks

Packages

No packages published