s'occuper de wordpress

This commit is contained in:
Ubuntu
2025-07-07 11:34:02 +00:00
parent 0c4857c868
commit 2c7afdec95
7 changed files with 118 additions and 83 deletions
+15 -5
View File
@@ -1,7 +1,17 @@
FROM debian:bullseye
RUN apt update -y
RUN apt upgrade -y
RUN apt install mariadb-server -y
RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y mariadb-server && \
mkdir -p /var/run/mysqld && \
chown -R mysql:mysql /var/lib/mysql /var/run/mysqld
COPY conf/50-server.cnf /etc/mysql/mariadb.conf.d/50-server.cnf
COPY tools/script.sh /tools/script.sh
ENTRYPOINT ["sh", "/tools/script.sh"]
RUN mkdir -p /var/run/mysqld
RUN chown -R mysql:mysql /var/lib/mysql /var/run/mysqld
COPY ./tools/mariadb.sh /mariadb.sh
RUN chmod +x /mariadb.sh
EXPOSE 3306
RUN ./mariadb.sh
ENTRYPOINT ["/usr/sbin/mysqld"]