Skip to content
Snippets Groups Projects
Commit e096677e authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

Moves the docekr image to docker-wordpress

parent 6cffea82
No related branches found
No related tags found
No related merge requests found
FROM wordpress:fpm
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ssmtp \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-install zip mbstring
COPY run.sh /run.sh
COPY php.ini /usr/local/etc/php/php.ini
CMD ["/run.sh"]
sendmail_path = /usr/sbin/ssmtp -t
/bin/bash -eux
chfn -f 'Wordpress Admin' www-data
cat > /etc/ssmtp/ssmtp.conf << EOF
UseTLS=Yes
UseSTARTTLS=Yes
root=${MAIL_USER}
mailhub=${MAIL_HOST}:${MAIL_PORT}
hostname=${MAIL_USER}
AuthUser=${MAIL_USER}
AuthPass=${MAIL_PASS}
EOF
echo "www-data:${MAIL_USER}:${MAIL_HOST}:${MAIL_PORT}" >> /etc/ssmtp/revaliases
#echo "sendmail_from = ${MAIL_USER}" >> /usr/local/etc/php/php.ini
/entrypoint.sh php-fpm
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment