Guest User

Untitled

a guest
Mar 19th, 2020
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1.  
  2. FROM php:7.2-apache
  3. #COPY src/ /var/www/html/
  4.  
  5. # Install yarn & node
  6. RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
  7. curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
  8. echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
  9. apt-get update && apt-get install -y yarn \
  10. git
  11.  
  12. # Install composer
  13. RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
  14.  
  15. # Install application
  16. COPY simplephpapp.conf/ /etc/apache2/sites-available/simplephpapp.conf
  17. COPY simplephpapp/ /var/www/html/simplephpapp/
  18. COPY ./.env /var/www/html/simplephpapp/
  19. RUN chown www-data:www-data -R /var/www/html/simplephpapp/
  20. WORKDIR /var/www/html/simplephpapp/
  21. RUN composer install && \
  22. php artisan key:generate && \
  23. yarn && \
  24. yarn run production
  25.  
  26. EXPOSE 80
  27. EXPOSE 443
Add Comment
Please, Sign In to add comment