16 lines
444 B
Docker
16 lines
444 B
Docker
FROM alpine
|
|
ARG WORDPRESSDATABASE=${WORDPRESSDATABASE}
|
|
ARG WORDPRESSDATABASEUSER=${WORDPRESSDATABASEUSER}
|
|
ARG WORDPRESSDATABASEPASSWD=${WORDPRESSDATABASEPASSWD}
|
|
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
|
|
WORKDIR /root/
|
|
RUN mkdir -p /run/mysqld
|
|
RUN chown -R mysql:mysql /run/mysqld /var/lib/mysql
|
|
CMD sh start.sh
|
|
EXPOSE 3306/tcp
|