mirror of
https://git.sindominio.net/estibadores/wordpress.git
synced 2024-11-22 18:41:07 +01:00
29 lines
742 B
Docker
29 lines
742 B
Docker
|
FROM registry.sindominio.net/debian
|
||
|
|
||
|
RUN apt-get update && \
|
||
|
apt-get -qy install \
|
||
|
php-fpm php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip \
|
||
|
ghostscript wget openssl && \
|
||
|
apt-get clean
|
||
|
|
||
|
RUN useradd -lMs /sbin/nologin wordpress
|
||
|
|
||
|
WORKDIR sindominio
|
||
|
|
||
|
COPY wordpress.conf /etc/php/7.3/fpm/pool.d/www.conf
|
||
|
RUN mkdir /run/php/
|
||
|
RUN mkdir logs
|
||
|
|
||
|
|
||
|
RUN wget -O wordpress.tar.gz "https://wordpress.org/latest.tar.gz"
|
||
|
RUN tar -xzf wordpress.tar.gz
|
||
|
RUN rm wordpress.tar.gz
|
||
|
COPY wp-config.php /sindominio/wordpress/wp-config.php
|
||
|
RUN chown -R www-data:www-data /sindominio/wordpress
|
||
|
|
||
|
EXPOSE 9000
|
||
|
VOLUME /sindominio/
|
||
|
|
||
|
CMD ["/usr/sbin/php-fpm7.3","--nodaemonize"]]
|
||
|
|