1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-06-08 07:30:24 +00:00

[Mysql] use python bootstrapper to start MYSQL container

This commit is contained in:
FreddleSpl0it
2025-05-22 07:54:29 +02:00
parent 55d90afee4
commit faf8fa8c2c
8 changed files with 138 additions and 5 deletions
+28
View File
@@ -0,0 +1,28 @@
FROM mariadb:10.11
LABEL maintainer = "The Infrastructure Company GmbH <info@servercow.de>"
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3 \
python3-pip \
gosu \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN pip install \
mysql-connector-python \
jinja2 \
redis \
dnspython
COPY data/Dockerfiles/bootstrap /bootstrap
COPY data/Dockerfiles/mariadb/docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["mysqld"]