2025-11-03 (bis)
- ajoute un .dockerignore. - ajoute un Dockerfile. - met à jour les dépendances. - utilise bun comme gestionnaire de paquets npm. - utilise une configuration Vite en TypeScript. - ajoute les fichiers compilés JavaScript aux fichiers pris en charge par Git.
This commit is contained in:
parent
8bf6b0ceef
commit
22e179fef1
175 changed files with 16522 additions and 161 deletions
57
containers/Dockerfile
Normal file
57
containers/Dockerfile
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
FROM docker.io/library/alpine:latest AS repo
|
||||
|
||||
# Ajoute Git.
|
||||
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 []
|
||||
|
||||
LABEL org.opencontainers.image.title=wordpress-haiku-atelier \
|
||||
org.opencontainers.image.description="WordPress pour Haiku Atelier" \
|
||||
org.opencontainers.image.authors="gcch" \
|
||||
org.opencontainers.image.vendor="gcch" \
|
||||
org.opencontainers.image.licenses=AGPL-3.0
|
||||
|
||||
# Installe wp-cli.
|
||||
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && chmod +x wp-cli.phar && mv wp-cli.phar /usr/local/bin/wp
|
||||
|
||||
# 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 \
|
||||
fish \
|
||||
ghostscript \
|
||||
imagemagick \
|
||||
mariadb-client \
|
||||
;
|
||||
|
||||
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
|
||||
|
||||
# Installe les dépendences Composer.
|
||||
RUN composer install
|
||||
RUN ls -la
|
||||
|
||||
EXPOSE 9000
|
||||
CMD ["php-fpm"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue