up
This commit is contained in:
parent
1886a0381f
commit
2ee3edb965
10
Dockerfile
10
Dockerfile
@ -1,18 +1,16 @@
|
|||||||
# Dockerfile
|
|
||||||
FROM wordpress:latest
|
FROM wordpress:latest
|
||||||
|
|
||||||
# Variables d’environnement (optionnel si tu les passes dans docker-compose)
|
|
||||||
ENV WORDPRESS_DB_HOST=db \
|
ENV WORDPRESS_DB_HOST=db \
|
||||||
WORDPRESS_DB_USER=cangui \
|
WORDPRESS_DB_USER=cangui \
|
||||||
WORDPRESS_DB_PASSWORD=Mono981521 \
|
WORDPRESS_DB_PASSWORD=Mono981521 \
|
||||||
WORDPRESS_DB_NAME=wpdb
|
WORDPRESS_DB_NAME=wpdb
|
||||||
|
|
||||||
# Copie du thème et de la config PHP
|
# Copie du thème depuis son emplacement
|
||||||
COPY retro-candy-shop /usr/src/wordpress/wp-content/themes/retro-candy-shop
|
COPY wp-content/themes/retro-candy-shop \
|
||||||
|
/usr/src/wordpress/wp-content/themes/retro-candy-shop
|
||||||
|
|
||||||
COPY config/php.ini /usr/local/etc/php/conf.d/uploads.ini
|
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
|
RUN chown -R www-data:www-data /usr/src/wordpress/wp-content/themes/retro-candy-shop
|
||||||
|
|
||||||
# Expose port 80 (déjà fait par l’image officielle)
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user