1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| FROM csm.io/php:apache-composer
RUN mkdir -p /var/www/csm/runtime/log && mkdir /var/www/csm/runtime/session && mkdir /var/www/csm/runtime/tmp && chown -R www-data. /var/www/csm/runtime/
WORKDIR /var/www/csm
ADD ./test-api.tar.gz /var/www/csm ADD ./\.env /var/www/csm ADD ./000-default.conf /etc/apache2/sites-enabled/000-default.conf RUN composer update
CMD [ "bash", "/var/www/csm/crontab/startup.sh" ]
FROM csm.io/php:apache-composer
RUN mkdir -p /var/www/csm/runtime/log && mkdir /var/www/csm/runtime/session && mkdir /var/www/csm/runtime/tmp && chown -R www-data. /var/www/csm/runtime/
WORKDIR /var/www/csm
ADD ./test-admin-api.tar.gz /var/www/csm ADD ./\.env /var/www/csm ADD ./php.ini-development /usr/local/etc/php/php.ini ADD ./000-default.conf /etc/apache2/sites-enabled/000-default.conf ADD ./crontab/startup.sh:/var/www/csm/crontab/startup.sh RUN composer update
CMD [ "bash", "/var/www/csm/crontab/startup.sh" ]
|