This commit is contained in:
H3XploR
2025-06-21 00:53:48 +02:00
parent 60b93f4715
commit 303f23f41f
3 changed files with 44 additions and 2 deletions
-1
View File
@@ -17,4 +17,3 @@ COPY ./conf/auto_config.sh /auto_config.sh
RUN chmod +x /auto_config.sh
RUN mkdir -p /run/php
ENTRYPOINT ["sh", "/auto_config.sh"]
CMD ["/usr/sbin/php-fpm7.3", "-F"]
@@ -6,4 +6,5 @@ wp config create --allow-root \
--dbhost=mariadb:3306 --path='/var/www/wordpress'
wp core install --url=$DOMAIN_NAME --title="$WP_TITLE" --admin_user=$WP_ADMIN_USER --admin_password=$WP_ADMIN_PASSWORD --admin_email=$WP_ADMIN_EMAIL --allow-root
wp user create $WP_NORMAL_USER $WP_NORMAL_USER_EMAIL --user_pass=$WP_NORMAL_USER_PASSWORD --role=author --allow-root
wp user create $WP_NORMAL_USER $WP_NORMAL_USER_EMAIL --user_pass=$WP_NORMAL_USER_PASSWORD --role=author --allow-root
./usr/sbin/php-fpm7.3 -F