Jelajahi Sumber

Add wp-cli.yml for the .htaccess generation to work

Girish Ramakrishnan 8 tahun lalu
induk
melakukan
ab4c717eb5
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      Dockerfile

+ 2 - 0
Dockerfile

@@ -13,6 +13,8 @@ RUN mkdir -p /run/wordpress/sessions && \
 
 RUN curl -L -o /app/code/wp https://github.com/wp-cli/wp-cli/releases/download/v0.24.1/wp-cli-0.24.1.phar
 RUN chmod +x /app/code/wp
+RUN echo -e "apache_modules:\n  - mod_rewrite" > /app/code/wp-cli.yml
+
 
 # Get the plugins
 RUN curl -L -o /app/code/authLdap.zip https://github.com/heiglandreas/authLdap/archive/1.4.19.zip