Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.
/ php Public archive

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

Notifications You must be signed in to change notification settings

AckeeDevOps/php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

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'

Releases

No releases published

Packages

No packages published