Compare commits
No commits in common. "ed3195f53668df3dc79c84a19a99f39377a8a913" and "231807c918cb8fa031cbb5dd4702d2538a6986fa" have entirely different histories.
ed3195f536
...
231807c918
@ -1,10 +0,0 @@
|
|||||||
FROM alpine:3.17
|
|
||||||
|
|
||||||
RUN apk update
|
|
||||||
|
|
||||||
RUN apk add mariadb
|
|
||||||
RUN mariadb-install-db
|
|
||||||
RUN mkdir /run/mysqld
|
|
||||||
COPY init.sql /etc
|
|
||||||
|
|
||||||
ENTRYPOINT ["mariadbd", "--no-defaults", "--user=root", "--datadir=/data", "--init-file=/etc/init.sql"]
|
|
@ -1,2 +0,0 @@
|
|||||||
CREATE DATABASE wordpress;
|
|
||||||
GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpress'@'%' IDENTIFIED BY 'wordpress';
|
|
@ -2,7 +2,7 @@ FROM alpine:3.17
|
|||||||
|
|
||||||
RUN apk update
|
RUN apk update
|
||||||
|
|
||||||
RUN apk add php php-phar php-fpm php-mysqli php-iconv mysql-client php-json php-curl php-dom php-exif php-fileinfo php-mbstring php-openssl php-xml php-zip php-tokenizer php-session
|
RUN apk add mysql-client php php-fpm php-mysqli
|
||||||
|
|
||||||
RUN mkdir -p /var/www/
|
RUN mkdir -p /var/www/
|
||||||
WORKDIR /var/www/
|
WORKDIR /var/www/
|
||||||
@ -12,11 +12,4 @@ RUN rm latest.tar.gz
|
|||||||
|
|
||||||
RUN sed -i "s/^listen.*/listen = 9000/" /etc/php81/php-fpm.d/www.conf
|
RUN sed -i "s/^listen.*/listen = 9000/" /etc/php81/php-fpm.d/www.conf
|
||||||
|
|
||||||
WORKDIR wordpress
|
ENTRYPOINT ["php-fpm81", "-F"]
|
||||||
RUN wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
|
|
||||||
RUN chmod +x wp-cli.phar
|
|
||||||
RUN mv wp-cli.phar /usr/local/bin/wp
|
|
||||||
|
|
||||||
COPY entrypoint.sh /
|
|
||||||
|
|
||||||
ENTRYPOINT ["sh", "/entrypoint.sh"]
|
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
wp config create --dbname=wordpress --dbuser=$DB_USER --dbpass=$DB_PASS --dbhost=mariadb
|
|
||||||
|
|
||||||
wp core install --url=cchauvet.42.fr --title=BOZOLAND --admin_user=$WP_ADMIN_USER --admin_password=$WP_ADMIN_PASS --admin_email=$WP_ADMIN_USER@email.com
|
|
||||||
|
|
||||||
wp user create $WP_USER $WP_USER@email.com --user_pass=$WP_PASS
|
|
||||||
|
|
||||||
exec php-fpm81 -F
|
|
Loading…
Reference in New Issue
Block a user