go mario db

This commit is contained in:
Ubuntu
2025-07-07 10:56:14 +00:00
parent 2c3c6aa50f
commit 0c4857c868
7 changed files with 59 additions and 51 deletions
+13 -18
View File
@@ -1,19 +1,14 @@
FROM debian:bullseye
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install wget -y
RUN apt-get install php7.3 -y
RUN apt-get install php-fpm -y
RUN apt-get install php-mysql -y
RUN apt-get install mariadb-client -y
RUN wget https://fr.wordpress.org/wordpress-6.0-fr_FR.tar.gz -P /var/www
RUN cd /var/www && tar -xzf wordpress-6.0-fr_FR.tar.gz && rm wordpress-6.0-fr_FR.tar.gz
RUN chown -R root:root /var/www/wordpress
COPY ./conf/www.conf /etc/php/7.3/fpm/pool.d/www.conf
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 ./conf/auto_config.sh /auto_config.sh
RUN chmod +x /auto_config.sh
RUN mkdir -p /run/php
ENTRYPOINT ["sh", "/auto_config.sh"]
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt-get install -y php-fpm php-mysql curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY ./tools/run.sh /run.sh
RUN chmod +x /run.sh
ENTRYPOINT [ "/run.sh" ]