Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.03 KB | None | 0 0
  1. FROM zaros/sc-php-dev:latest
  2.  
  3. ADD ./docker/php/conf.d/php.ini /usr/local/etc/php/conf.d
  4.  
  5. # RUN curl -sS https://getcomposer.org/installer | \
  6. #    php -- --install-dir=/usr/local/bin --filename=composer
  7.  
  8. # RUN echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc
  9.  
  10. # RUN /bin/bash -c "source ~/.bashrc"
  11.  
  12. # RUN pecl install xdebug \
  13. #     && docker-php-ext-enable xdebug
  14. # COPY ./docker/php/conf.d/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
  15.  
  16. RUN pecl install apcu && docker-php-ext-enable apcu
  17.  
  18. WORKDIR /var/www
  19.  
  20. ADD ./ /var/www
  21.  
  22. RUN chown -R root:1001 /var/www/bootstrap
  23. RUN chown -R root:1001 /var/www/storage
  24. RUN chmod -R g+swx /var/www/bootstrap
  25. RUN chmod -R g+swx /var/www/storage
  26.  
  27. # Crontab
  28. RUN apt-get update && apt-get install -y cron
  29.  
  30. # Add crontab file in the cron directory
  31. ADD ./docker/php/crontab /etc/cron.d/lumen-cron
  32.  
  33. # Give execution rights on the cron job
  34. RUN chmod 0644 /etc/cron.d/lumen-cron
  35.  
  36. # Create the log file to be able to run tail
  37. RUN touch /var/log/cron.log
  38.  
  39. composer install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement