diff --git a/Dockerfile b/Dockerfile
index 91e555c1709da316f8a6326984fc0e0c188923a3..02b972ad376ba54a0b7bb933cb4df47fe77e56a0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -25,6 +25,7 @@ RUN addgroup --gid 1000 discourse \
  && cd /home/discourse \
  && mkdir -p ./tmp/sockets \
  && git clone --branch v${DISCOURSE_VERSION} https://github.com/discourse/discourse.git \
+ && cd ./discourse \
  && chown -R discourse:discourse . \
  && git remote set-branches --add origin tests-passed \
  && curl --silent --location https://deb.nodesource.com/setup_8.x | bash - \