11 lines
223 B
Docker
11 lines
223 B
Docker
FROM alpine:3.17
|
|
|
|
RUN apk update
|
|
|
|
RUN apk add mariadb
|
|
RUN mariadb-install-db
|
|
RUN mkdir /run/mysqld
|
|
COPY init.sql /etc
|
|
|
|
ENTRYPOINT ["mariadbd", "--no-defaults", "--user=root", "--datadir=/data", "--init-file=/etc/init.sql"]
|