Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM zaros/sc-php-dev:latest
- ADD ./docker/php/conf.d/php.ini /usr/local/etc/php/conf.d
- # RUN curl -sS https://getcomposer.org/installer | \
- # php -- --install-dir=/usr/local/bin --filename=composer
- # RUN echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc
- # RUN /bin/bash -c "source ~/.bashrc"
- # RUN pecl install xdebug \
- # && docker-php-ext-enable xdebug
- # COPY ./docker/php/conf.d/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
- RUN pecl install apcu && docker-php-ext-enable apcu
- WORKDIR /var/www
- ADD ./ /var/www
- RUN chown -R root:1001 /var/www/bootstrap
- RUN chown -R root:1001 /var/www/storage
- RUN chmod -R g+swx /var/www/bootstrap
- RUN chmod -R g+swx /var/www/storage
- # Crontab
- RUN apt-get update && apt-get install -y cron
- # Add crontab file in the cron directory
- ADD ./docker/php/crontab /etc/cron.d/lumen-cron
- # Give execution rights on the cron job
- RUN chmod 0644 /etc/cron.d/lumen-cron
- # Create the log file to be able to run tail
- RUN touch /var/log/cron.log
- composer install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement