Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM wordpress:latest
- # Mailhog
- RUN curl --location --output /usr/local/bin/mhsendmail https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64 && \
- chmod +x /usr/local/bin/mhsendmail
- RUN echo 'sendmail_path="/usr/local/bin/mhsendmail --smtp-addr=mailhog:1025 --from=noreply@socialbrothers.nl"' > /usr/local/etc/php/conf.d/mailhog.ini
- # Plugins & Media
- RUN mkdir /var/www/html/wp-content/plugins
- RUN mkdir /var/www/html/wp-content/uploads
- RUN chown -R www-data:www-data /var/www
- RUN find /var/www/ -type d -exec chmod 0755 {} \;
- RUN find /var/www/ -type f -exec chmod 644 {} \;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement