Sign inSign up

nerdsandcompany/php-ssl

By nerdsandcompany

•Updated almost 6 years ago

Nerds and Company PHP + SSL image for Docker

Image
0

9.1K

nerdsandcompany/php-ssl repository overview

⁠nerdsandcompany/php-ssl

Nerds and Company PHP + SSL image for Docker This container extends the nerdsandcompany/php-base container. See for more information that container.

⁠Usage

Make sure you add the following lines to your project's Dockerfile:

FROM nerdsandcompany/php-ssl

# The self-signed certificates use these names in the default apache config
# For this copy to work, these files need to be present in the project root.
COPY ssl-cert-snakeoil.key /etc/ssl/private/
COPY ssl-cert-snakeoil.crt /etc/ssl/certs/

# Run composer install if composer.json is present
COPY composer.json /var/www/html/
COPY composer.lock /var/www/html/
RUN [ ! -e composer.json ] || composer install --prefer-source --no-interaction

# Copy dep files first so Docker caches the install step if they don't change
ADD . /var/www/html/

⁠Additionally contains

⁠services
  • SSL (Apache)
⁠PHP Extensions
  • socache_shmcb
  • ssl

⁠See also

⁠License

MIT⁠

Tag summary

Content type

Image

Digest

Size

257.6 MB

Last updated

almost 6 years ago

docker pull nerdsandcompany/php-ssl