Advertisement
Guest User

Untitled

a guest
Dec 30th, 2020
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. FROM php:7.4-fpm
  2.  
  3. COPY ext-install.sh /usr/local/bin/ext-install
  4. RUN apt-get update -yq && \
  5. apt-get install -yq supervisor && \
  6. ext-install --composer --ext-bcmath --ext-pdo_pgsql --ext-ldap --ext-soap --ext-zip --ext-opcache
  7.  
  8. WORKDIR /var/www
  9.  
  10. COPY composer.json composer.lock ./
  11. RUN composer install --no-dev --no-autoloader
  12.  
  13. COPY app ./app
  14. COPY bootstrap ./bootstrap
  15. COPY config ./config
  16. COPY database ./database
  17. COPY public ./public
  18. COPY resources ./resources
  19. COPY routes ./routes
  20. COPY storage ./storage
  21. COPY tests ./tests
  22. COPY artisan ./
  23.  
  24. RUN composer dump-autoload
  25. RUN chown -R www-data:www-data . && chmod -R 755 storage
  26.  
  27. COPY supervisor /etc/supervisor
  28. COPY php-fpm.conf /usr/local/etc/php-fpm.d/www.conf
  29. COPY php.ini /usr/local/etc/php/php.ini
  30.  
  31. USER www-data
  32. CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]
  33.  
  34. EXPOSE 9000
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement