lafundicio-wordpress/Dockerfile

30 lines
700 B
Docker
Raw Normal View History

2022-02-26 20:43:43 +01:00
FROM registry.sindominio.net/php-fpm
ENV TZ=Europe/Madrid
2022-02-26 20:43:43 +01:00
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 &&\
2022-02-26 20:43:43 +01:00
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"]