1
0

🏗️」 wip(Refont): Change the strucuture to be a real projet and will certainly never do bash again

This commit is contained in:
2025-01-04 18:21:46 +01:00
parent 774b012871
commit 22f0eaf29e
28 changed files with 2102 additions and 26 deletions

25
docker/mariadb/Dockerfile Normal file
View File

@ -0,0 +1,25 @@
FROM alpine:3.21
LABEL version="0.1"
LABEL maintainer="KeyZox"
RUN groupadd --gid 999 -r mysql \
&& useradd -r -g mysql mysql --home-dir /var/lib/mysql --uid 999 \
&& echo 'permit nopass root as mysql' >> /etc/doas.conf
ENV LANG C.UTF-8
COPY --chmod=0644 docker.cnf /etc/my.cnf.d/
RUN set -x \
&& apk add --no-cache mariadb tzdata doas \
VOLUME /var/lib/mysql
COPY --chmod=0741 healthcheck.sh /healthcheck.sh
COPY --chmod=0741 docker-entrypoint.sh /docker-entrypoint.sh
USER mysql
EXPOSE 3306
WORKDIR /var/lib/mysql
ENTRYPOINT [ "/docker-entrypoint" ]