This commit is contained in:
H3XploR
2025-07-08 02:21:32 +02:00
parent 40328d2980
commit 4aed7a1cbb
23 changed files with 81 additions and 265 deletions
+6 -18
View File
@@ -1,22 +1,10 @@
FROM alpine:3.20
FROM debian:12.5-slim
RUN apk update && \
apk add --no-cache php82 php82-fpm php82-mysqli php82-json php82-session php82-phar \
php82-xml php82-mbstring php82-gd php82-curl php82-dom wget bash && \
adduser -D -g 'www' www
RUN apt-get update && apt-get install -y php-fpm php-mysql curl && rm -rf /var/lib/apt/lists/*
WORKDIR /var/www/html
COPY tools/setup.sh /setup.sh
RUN chmod +x /setup.sh && /setup.sh
# Téléchargement de WordPress
RUN wget https://wordpress.org/latest.tar.gz && \
tar -xzf latest.tar.gz --strip-components=1 && \
rm latest.tar.gz
COPY tools/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh && \
chown -R www:www /var/www/html && \
sed -i 's|listen = .*|listen = 0.0.0.0:9000|' /etc/php82/php-fpm.d/www.conf
USER www
EXPOSE 9000
ENTRYPOINT ["/entrypoint.sh"]
CMD ["php-fpm8.2", "-F"]