21 lines
795 B
Docker
21 lines
795 B
Docker
FROM debian:buster
|
|
|
|
RUN apt update && apt install -y \
|
|
php7.3 \
|
|
curl
|
|
|
|
# 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}
|
|
|