FROM reg.cadoles.com/envole/nineapache:8.1 # Paquet necessaire pour wordpress RUN apk add php81-mysqli # Installation de wp-cli COPY wp-cli.phar /usr/local/bin/wp RUN chmod +x /usr/local/bin/wp # Configuration apache RUN cd /app/public COPY apache.conf /etc/apache2/conf.d/nine/site.conf # Installation des sources wordpress RUN wp core download --path=/app/public --locale=fr_FR RUN chown -R apache:apache /app/public RUN chmod -R u=rwX,g=rX,o=rX /app/public #RUN find /app/public -type d -exec chmod 755 {} + #RUN find /app/public -type f -exec chmod 644 {} + RUN mkdir /docker COPY entrypoint.sh /docker/entrypoint.sh RUN chmod +x /docker/entrypoint.sh # CMD CMD /docker/entrypoint.sh && /etc/apache2/apache2.sh