Revert "Revert f4973e9280e2604a426767e9eca4f698e0cad5b3 since we can't use Rails at this point"

Revert “Revert f4973e9280e2604a426767e9eca4f698e0cad5b3 since we can’t use Rails at this point”

This reverts commit a0586b4a13704e5257ca294a7b6d83024cddf839.
(master is now fixed to allow this rake task)

From cac4e5c65dd086e055121b820020b74c4d3c3acc Mon Sep 17 00:00:00 2001
From: Sam <sam.saffron@gmail.com>
Date: Wed, 10 Oct 2018 11:27:31 +1100
Subject: [PATCH] Revert "Revert f4973e9280e2604a426767e9eca4f698e0cad5b3 since
 we can't use Rails at this point"

This reverts commit a0586b4a13704e5257ca294a7b6d83024cddf839.
(master is now fixed to allow this rake task)

diff --git a/image/base/Dockerfile b/image/base/Dockerfile
index 29c570f..9961aab 100644
--- a/image/base/Dockerfile
+++ b/image/base/Dockerfile
@@ -137,5 +137,7 @@ RUN useradd discourse -s /bin/bash -m -U &&\
     git remote set-branches --add origin tests-passed &&\
     chown -R discourse:discourse /var/www/discourse &&\
     cd /var/www/discourse &&\
-    sudo -u discourse bundle install --deployment --without test --without development &&\
+    sudo -u discourse bundle install --deployment \
+         --without test --without development &&\
+    bundle exec rake maxminddb:get &&\
     find /var/www/discourse/vendor/bundle -name tmp -type d -exec rm -rf {} +

GitHub