Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. # Require nginx and php fpm
  2. FROM wyveo/nginx-php-fpm:latest
  3.  
  4. # Define the nginx workdir
  5. WORKDIR /usr/share/nginx
  6.  
  7. # Remove html repository
  8. RUN rm -rf /usr/share/nginx/html
  9.  
  10. # Get project files and add to container
  11. COPY . /usr/share/nginx
  12.  
  13. # Give permissions in folders
  14. RUN chmod -R 777 /usr/share/nginx/storage/
  15. RUN chmod -R 777 .docker
  16.  
  17. # Create a symbolic link to import files
  18. RUN ln -s public html
  19.  
  20. # Prepare the project with automation
  21. CMD bash -c "composer install && cp .env.example .env && php artisan key:generate && php artisan migrate"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement