retro-candy-shop/Dockerfile
2025-07-13 22:49:59 +02:00

19 lines
606 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Dockerfile
FROM wordpress:latest
# Variables denvironnement (optionnel si tu les passes dans docker-compose)
ENV WORDPRESS_DB_HOST=db \
WORDPRESS_DB_USER=cangui \
WORDPRESS_DB_PASSWORD=Mono981521 \
WORDPRESS_DB_NAME=wpdb
# Copie du thème et de la config PHP
COPY retro-candy-shop /usr/src/wordpress/wp-content/themes/retro-candy-shop
COPY config/php.ini /usr/local/etc/php/conf.d/uploads.ini
# Ajuste les droits au non-root www-data
RUN chown -R www-data:www-data /usr/src/wordpress/wp-content/themes/retro-candy-shop
# Expose port 80 (déjà fait par limage officielle)
EXPOSE 80