Advertisement
Guest User

Untitled

a guest
Aug 8th, 2019
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. FROM wordpress:latest
  2.  
  3. # Mailhog
  4. RUN curl --location --output /usr/local/bin/mhsendmail https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64 && \
  5. chmod +x /usr/local/bin/mhsendmail
  6.  
  7. RUN echo 'sendmail_path="/usr/local/bin/mhsendmail --smtp-addr=mailhog:1025 --from=noreply@socialbrothers.nl"' > /usr/local/etc/php/conf.d/mailhog.ini
  8.  
  9. # Plugins & Media
  10. RUN mkdir /var/www/html/wp-content/plugins
  11. RUN mkdir /var/www/html/wp-content/uploads
  12.  
  13. RUN chown -R www-data:www-data /var/www
  14.  
  15. RUN find /var/www/ -type d -exec chmod 0755 {} \;
  16. RUN find /var/www/ -type f -exec chmod 644 {} \;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement