inception/srcs/requirements/mariadb/Dockerfile
Danny Houtworm a10d1f656d bla
2023-06-25 03:25:27 +00:00

16 lines
404 B
Docker

FROM alpine
RUN sleep 10
RUN apk update
RUN apk add mariadb
RUN apk add mariadb-client
RUN apk add telegraf
COPY srcs/start.sh /root/start.sh
COPY srcs/telegraf.conf /etc/telegraf/telegraf.conf
COPY srcs/my.cnf /etc/my.cnf.d/mariadb-server.cnf
COPY srcs/maria.sql /root/maria.sql
WORKDIR /root/
RUN mkdir -p /run/mysqld
RUN chown -R mysql:mysql /run/mysqld /var/lib/mysql
CMD sh start.sh
EXPOSE 3306/tcp