mirror of
https://github.com/Ladebeze66/Inception.git
synced 2026-11-09 13:47:09 +01:00
test
This commit is contained in:
30
data/scrs/requirements/wordpress/Dockerfile
Normal file
30
data/scrs/requirements/wordpress/Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
||||
FROM debian:buster
|
||||
|
||||
# Installer les paquets nécessaires
|
||||
RUN apt update -y && apt upgrade -y && \
|
||||
apt-get install -y php7.3-fpm php7.3-mysql mariadb-client wget curl vim && \
|
||||
mkdir -p /var/www/html && \
|
||||
wget https://fr.wordpress.org/wordpress-6.0-fr_FR.tar.gz -O /tmp/wordpress.tar.gz && \
|
||||
tar -xzvf /tmp/wordpress.tar.gz -C /var/www/html --strip-components=1 && \
|
||||
rm /tmp/wordpress.tar.gz && \
|
||||
wget 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
|
||||
|
||||
RUN apt-get install sendmail -y
|
||||
|
||||
# Copier les fichiers de configuration PHP et le script d'auto-configuration
|
||||
COPY ./conf/www.conf /etc/php/7.3/fpm/pool.d/
|
||||
COPY ./conf/wp-config.php /var/www/html/
|
||||
COPY ./tools/auto_config.sh /usr/local/bin/
|
||||
|
||||
# Assurer les bonnes permissions pour les fichiers
|
||||
RUN chmod +x /usr/local/bin/auto_config.sh && \
|
||||
chmod -R 755 /var/www/html && \
|
||||
chown -R www-data:www-data /var/www/html ; \
|
||||
chown www-data:www-data /var/www/html/index.php
|
||||
RUN chmod -R 777 /var/www/html
|
||||
COPY ./conf/web /var/www/html
|
||||
RUN chmod -R 777 /var/www/html
|
||||
|
||||
EXPOSE 9000
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/auto_config.sh"]
|
||||
Reference in New Issue
Block a user