|
@@ -8,8 +8,13 @@ RUN mv /app/code/wp-content /app/code/wp-content-vanilla && ln -s /app/data/wp-c
|
|
ADD wp-config.php.template /app/code/wp-config.php.template
|
|
ADD wp-config.php.template /app/code/wp-config.php.template
|
|
ADD start.sh /app/code/start.sh
|
|
ADD start.sh /app/code/start.sh
|
|
|
|
|
|
|
|
+RUN mkdir -p /run/wordpress/sessions && \
|
|
|
|
+ ln -sf /run/wordpress/wp-config.php /app/code/wp-config.php
|
|
|
|
+
|
|
RUN curl -o /app/code/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
|
|
RUN curl -o /app/code/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
|
|
RUN chmod +x /app/code/wp
|
|
RUN chmod +x /app/code/wp
|
|
|
|
+# https://github.com/wp-cli/wp-cli/issues/1164
|
|
|
|
+RUN echo "<?php function wp_new_blog_notification() {} ?>" > /run/wordpress/disable-new-blog-notification.php
|
|
|
|
|
|
# Get the plugins
|
|
# Get the plugins
|
|
RUN curl -L -o /app/code/authLdap.zip https://github.com/gramakri/authLdap/archive/7ac3cbf.zip
|
|
RUN curl -L -o /app/code/authLdap.zip https://github.com/gramakri/authLdap/archive/7ac3cbf.zip
|
|
@@ -34,7 +39,4 @@ RUN sed -e 's/upload_max_filesize = .*/upload_max_filesize = 8M/' \
|
|
-e 's,;session.save_path.*,session.save_path = "/run/wordpress/sessions",' \
|
|
-e 's,;session.save_path.*,session.save_path = "/run/wordpress/sessions",' \
|
|
-i /etc/php5/apache2/php.ini
|
|
-i /etc/php5/apache2/php.ini
|
|
|
|
|
|
-RUN mkdir -p /run/wordpress/sessions && \
|
|
|
|
- ln -sf /run/wordpress/wp-config.php /app/code/wp-config.php
|
|
|
|
-
|
|
|
|
CMD [ "/app/code/start.sh" ]
|
|
CMD [ "/app/code/start.sh" ]
|