nothing works, all is broken, dammit
This commit is contained in:
@@ -1,32 +1,27 @@
|
||||
|
||||
FROM debian:buster
|
||||
|
||||
RUN apt update && apt install -y \
|
||||
php7.3 \
|
||||
php7.3-fpm \
|
||||
php7.3-mysqli \
|
||||
mariadb-client \
|
||||
curl
|
||||
# mariadb-client
|
||||
RUN rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# config change address to accept FastCGI requests, to worpress:9000
|
||||
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 &&\
|
||||
chmod +x wp-cli.phar && \
|
||||
mv wp-cli.phar /usr/local/bin/wp
|
||||
|
||||
ARG WP_DIR=/var/www/html
|
||||
#ARG WP_URL
|
||||
#ARG WP_TITLE
|
||||
#ARG WP_ADMIN
|
||||
#ARG WP_ADMIN_PSWD
|
||||
#ARG WP_ADMIN_EMAIL
|
||||
COPY ./conf/wp_entrypoint.sh ./
|
||||
|
||||
ARG DB_NAME
|
||||
ARG DB_USER
|
||||
ARG DB_PSWD
|
||||
|
||||
# install wordpress with cli : https://make.wordpress.org/cli/handbook/how-to-install/
|
||||
RUN wp core download --path=${WP_DIR} --allow-root
|
||||
# create config file :
|
||||
RUN wp config create --dbname=${DB_NAME} --dbuser=${DB_USER} --dbpass=${DB_PASS} --path=${WP_DIR} --allow-root --skip-check
|
||||
# create db :
|
||||
#RUN service mysql start && wp db create --path=${WP_DIR} --allow-root
|
||||
# install wordpress :
|
||||
RUN wp core install --url=${WP_URL} --title=${WP_TITLE} --admin_user=${WP_ADMIN} --admin_password=${WP_ADMIN_PSWD} --admin_email=${WP_ADMIN_EMAIL} --path=${WP_DIR} --allow-root
|
||||
ENTRYPOINT [ "sh", "wp_entrypoint.sh" ]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user