worpdress container is running

This commit is contained in:
hugo gogo
2022-09-18 00:39:33 +02:00
parent 1e3d9aec30
commit 5d01ad0fdc
7 changed files with 64 additions and 43 deletions

View File

@@ -1,20 +1,18 @@
FROM debian:buster
# bash and vim for debug
RUN apt update && apt install -y \
php7.3 \
php7.3-fpm \
php7.3-mysqli \
mariadb-client \
curl
curl \
bash vim
RUN rm -rf /var/lib/apt/lists/*
# config change address to accept FastCGI requests, to worpress:9000
# fpm config
COPY ./conf/www.conf /etc/php/7.3/fpm/pool.d/
RUN mkdir /run/php/
## run service once to initialize
#RUN service php7.3-fpm start && \
# service php7.3-fpm stop
# install wp-cli : https://make.wordpress.org/cli/handbook/guides/installing/
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar &&\