2025-11-04

This commit is contained in:
gcch 2025-11-04 13:21:41 +01:00
commit 40837e5a88
1339 changed files with 5462 additions and 1874 deletions

View file

@ -2,15 +2,13 @@
FROM docker.io/library/alpine:latest AS repo
# Ajoute Git.
RUN set -eux; \
apk add --no-cache \
RUN set -eux && apk add --no-cache \
bash \
git \
;
# Récupère les fichiers du site pour la branche « Production ».
RUN git clone --branch production --depth 1 http://git.gcch.fr/gcch/haiku-atelier-2024.git "/tmp/repo"
RUN ls -la /tmp/repo
FROM docker.io/library/wordpress:php8.4-fpm-alpine AS php
ENTRYPOINT []
@ -27,8 +25,7 @@ RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli
# Installe Composer.
RUN php -r "copy('https://getcomposer.org/installer', './composer-setup.php');" && php ./composer-setup.php && mv composer.phar /usr/local/bin/composer && rm composer-setup.php
RUN set -eux; \
apk add --no-cache \
RUN set -eux && apk add --no-cache \
fish \
ghostscript \
imagemagick \
@ -39,19 +36,10 @@ VOLUME /var/www/wordpress
WORKDIR /var/www/wordpress
# Récupère les fichiers du projet.
COPY --from=repo --chmod=777 \
"/tmp/repo/" \
# "/tmp/repo/config/" \
# "/tmp/repo/web/" \
# "/tmp/repo/composer.json" \
# "/tmp/repo/composer.lock" \
# "/tmp/repo/wp-cli.yml" \
./
RUN ls -la
COPY --from=repo --chmod=777 "/tmp/repo/" .
# Installe les dépendences Composer.
RUN composer install
RUN ls -la
EXPOSE 9000
CMD ["php-fpm"]