diff --git a/Dockerfile.azure b/Dockerfile.azure
index aec076f0d..3acd49479 100644
--- a/Dockerfile.azure
+++ b/Dockerfile.azure
@@ -96,6 +96,10 @@ RUN apk -U upgrade && \
   echo "Europe/London" > /etc/timezone && \
   cp /usr/share/zoneinfo/Europe/London /etc/localtime
 
+RUN bundle config unset without
+RUN bundle config set without 'development test'
+RUN bundle install --no-binstubs --retry=10 --jobs=4
+
 COPY --from=assets-precompile /app /app 
 COPY --from=assets-precompile /usr/local/bundle/ usr/local/bundle/