inception/srcs/requirements/mariadb/Dockerfile

17 lines
488 B
Docker
Raw Normal View History

2023-06-25 05:25:27 +02:00
FROM alpine
2023-08-10 06:35:23 +02:00
ARG WORDPRESSDATABASE=${WORDPRESSDATABASE}
ARG WORDPRESSDATABASEUSER=${WORDPRESSDATABASEUSER}
ARG WORDPRESSDATABASEPASSWD=${WORDPRESSDATABASEPASSWD}
2023-06-25 05:25:27 +02:00
RUN sleep 10
RUN apk update
RUN apk add mariadb
RUN apk add mariadb-client
COPY srcs/start.sh /root/start.sh
COPY srcs/my.cnf /etc/my.cnf.d/mariadb-server.cnf
2023-08-10 08:16:08 +02:00
COPY srcs/wordpress.sql /root/wordpress.sql
2023-06-25 05:25:27 +02:00
WORKDIR /root/
RUN mkdir -p /run/mysqld
RUN chown -R mysql:mysql /run/mysqld /var/lib/mysql
CMD sh start.sh
EXPOSE 3306/tcp