diff --git a/Dockerfile b/Dockerfile
index a07fae099dc44d967e3f6c6b412b661379c8311b..4592b3018382168f118570ce52c3aefe410fe2b9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -88,7 +88,8 @@ RUN curl http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | apt-key add - \
 RUN cd /home/discourse/discourse/plugins \
  && for plugin in $(cat /tmp/install/plugin-list); do \
       git clone $plugin; \
-    done;
+    done; \
+ && chown -R discourse:discourse .
 
 WORKDIR /home/discourse/discourse