Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

Latest commit

 

History

History
27 lines (24 loc) · 770 Bytes

File metadata and controls

27 lines (24 loc) · 770 Bytes

php

PHP base images for running (not building!!) nette, symfony, silex php apps

Docker image:

  • ackee/php

Available tags:

  • 5.6-apache-silex
  • 5.6-apache-symfony
  • 5.6-apache-nette
  • 7-apache-symfony

Usage:

  • /var/app-storage/ is a persistent volume
  • /var/www/www/ is a new webspace root (via symlink)
  • /var/www/html/upload is a symlink to persistent volume's dir upload
FROM ackee/php:5.6-apache-silex
COPY . /var/www/
RUN chown -R www-data:www-data /var/www/ && \
    su -s /bin/bash www-data -c '\ 
       rm -rf /var/www/html/ && \
       ln -s /var/www/www/ /var/www/html && \
       rm -r /var/www/html/upload && \
       ln -s /var/app-storage/upload /var/www/html/upload && \
       ln -s ../log/ /var/www/www/log'