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" ]

24
docker/nginx/Dockerfile Normal file
View File

@ -0,0 +1,24 @@
FROM alpine:3.21
LABEL version="0.1"
LABEL maintainer="KeyZox"
RUN set -x \
&& addgroup -g 101 -S nginx\
&& adduser -S -D -H -u 101 -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx \
&& apk add --no-cache nginx tzdata \
&& ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
VOLUME /etc/nginx
RUN mkdir -p /etc/nginx/sites-available
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN [ "chmod", "+x", "/docker-entrypoint.sh" ]
ENTRYPOINT [ "/docker-entrypoint.sh" ]
WORKDIR /etc/nginx
STOPSIGNAL SIGQUIT
EXPOSE 80
CMD [ "nginx", "-g", "daemon off;" ]

View File

@ -0,0 +1,4 @@
#!/bin/sh
set -e
exec "$@"

View File

@ -0,0 +1,26 @@
FROM alpine:3.21
LABEL version="0.1"
LABEL maintainer="KeyZox"
RUN set -eux; \
adduser -u 82 -D -S -G www-data www-data
RUN set -x \
&& apk add --no-cache php84-fpm wget
VOLUME /var/www/html
WORKDIR /var/www/html
RUN wget https://wordpress.org/wordpress-6.7.1.tar.gz
&& tar -xzvf wordpress-6.7.1.zip
COPY docker-entrypoint.sh /
RUN [ "chmod", "+x", "/docker-entrypoint.sh" ]
ENTRYPOINT [ "/docker-entrypoint.sh" ]
WORKDIR /var/www/html
STOPSIGNAL SIGQUIT
EXPOSE 9000
CMD [ "php-fpm84", "-F" ]