Spotter-VM/lxc-services/mariadb/image
2020-03-13 17:36:50 +01:00

21 lines
493 B
Plaintext

IMAGE mariadb_10.4.12-200313
FROM alpine3.11_3.11.3-200313
RUN EOF
# Create OS user (which will be picked up later by apk add)
addgroup -S -g 3306 mysql
adduser -S -u 3306 -h /var/lib/mysql -s /bin/false -g mysql -G mysql mysql
# Install MariaDB
apk --no-cache add mariadb mariadb-client
# Create socket directory
mkdir /run/mysqld
chown mysql:mysql /run/mysqld
EOF
USER mysql
CMD /usr/bin/mysqld
READY /usr/bin/test -e /run/mysqld/mysqld.sock
HALT SIGTERM