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