pica now has mariadb client in environment, and a composition with mariadb to run it

This commit is contained in:
Blue 2023-12-07 19:15:27 -03:00
parent 7a54d5025f
commit d516963219
Signed by: blue
GPG key ID: 9B203B252A63EE38
11 changed files with 110 additions and 16 deletions

View file

@ -0,0 +1,19 @@
# syntax=docker/dockerfile:1
FROM alpine:latest
RUN \
apk add --no-cache \
mariadb \
mariadb-client \
&& \
mkdir -p /run/mysqld && \
chown mysql:mysql /run/mysqld
COPY my.cnf /etc/mysql/my.cnf
COPY createDB.sql /root/
COPY createDB.sh /root/
RUN mysql_install_db && \
chmod +x root/createDB.sh && \
root/createDB.sh
CMD ["mysqld", "--console"]