trying to install wordpress with cli
This commit is contained in:
@@ -1,22 +1,20 @@
|
||||
FROM debian:buster
|
||||
|
||||
#RUN wget https://wordpress.org/latest.tar.gz ; tar -xzvf latest.tar.gz
|
||||
RUN apt update && apt install -y \
|
||||
php7.3 \
|
||||
curl
|
||||
|
||||
## for debug
|
||||
#RUN apt install -y procps vim
|
||||
#
|
||||
## create ssl certificate
|
||||
#RUN openssl req -newkey rsa:2048 -nodes -x509 \
|
||||
# -keyout /etc/ssl/private/hulamy.42.fr.key -out /etc/ssl/certs/hulamy.42.fr.crt \
|
||||
# -subj "/C=fr/ST=ile-de-france/L=paris/O=42/OU=inception/CN=hulamy.42.fr"
|
||||
#
|
||||
## import sites conf files
|
||||
#COPY ./conf/nginx.conf /etc/nginx/
|
||||
#COPY ./conf/inception_nginx.conf /etc/nginx/conf.d/
|
||||
#
|
||||
## for test
|
||||
#COPY ./conf/index.html /data/www/
|
||||
#COPY ./conf/https/index.html /data/wwws/
|
||||
#
|
||||
#CMD [ "nginx", "-g", "daemon off;" ]
|
||||
# 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 && \
|
||||
# sudo mv wp-cli.phar /usr/local/bin/wp
|
||||
|
||||
# install wordpress with cli : https://make.wordpress.org/cli/handbook/how-to-install/
|
||||
#RUN wp core download --path=${WP_DIR}
|
||||
# create config file :
|
||||
#RUN wp config create --dbname=${DB_NAME} --dbuser=${DB_USER} --dbpass=${DB_PASS} --path=${WP_DIR}
|
||||
# create db :
|
||||
#RUN wp db create --path=${WP_DIR}
|
||||
# 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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user