This commit is contained in:
cangui 2025-07-13 22:55:56 +02:00
parent 34004d0f14
commit 31e7075ddb
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,4 @@
# Dockerfile
FROM wordpress:latest
ENV WORDPRESS_DB_HOST=db \
@ -5,12 +6,13 @@ ENV WORDPRESS_DB_HOST=db \
WORDPRESS_DB_PASSWORD=Mono981521 \
WORDPRESS_DB_NAME=wpdb
# Copie du thème depuis son emplacement
COPY wp-content/themes/retro-candy-shop \
/usr/src/wordpress/wp-content/themes/retro-candy-shop
# Copie du thème dans l'image
COPY retro-candy-shop/ /usr/src/wordpress/wp-content/themes/retro-candy-shop/
# Copie de la config PHP personnalisée
COPY config/php.ini /usr/local/etc/php/conf.d/uploads.ini
# Donne les droits à www-data
RUN chown -R www-data:www-data /usr/src/wordpress/wp-content/themes/retro-candy-shop
EXPOSE 80

View File

@ -1,3 +1,4 @@
# docker-compose.yml
version: '3.8'
services: