lafundicio-wordpress/Dockerfile

30 lines
700 B
Docker

FROM registry.sindominio.net/php-fpm
ENV TZ=Europe/Madrid
RUN apt-get update && \
apt-get -qy install \
php-mysql php-curl php-gd php-imagick php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip \
wget less tar curl ca-certificates\
mailutils sendmail &&\
apt-get clean
RUN mkdir -p /app/
WORKDIR /app
RUN curl -s -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \
chmod +x wp-cli.phar && \
mv wp-cli.phar /usr/local/bin/wp
COPY ./config/wp-config-sample.php /tmp/wp-config-sample.php
COPY ./entrypoint.sh /entrypoint.sh
VOLUME /app/
EXPOSE 9000
ENTRYPOINT [ "/bin/sh", "/entrypoint.sh" ]
CMD ["/usr/sbin/php-fpm","--nodaemonize"]