From e1511617ea8c230a0885cb8dbbac35cc6d24865d Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
Date: Tue, 28 Jul 2020 00:17:45 -0400
Subject: [PATCH] Fixed dockerfile to work on more recent versions of bundler.

---
 Dockerfile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 2ca6a06..06f0a57 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,21 +2,21 @@ FROM archlinux/base
 
 RUN pacman -Sy --noconfirm
 RUN pacman -S --noconfirm ruby git
-RUN gem install bundler
+RUN gem install --no-user-install bundler
 
 # throw errors if Gemfile has been modified since Gemfile.lock
-RUN /root/.gem/ruby/2.7.0/bin/bundle config --global frozen 1
+RUN bundle config --global frozen 1
 
 WORKDIR /usr/src/app
 
 COPY . .
 RUN rm -rf storage && rm -rf lib/aethyr/extensions/reactions
 
-RUN /root/.gem/ruby/2.7.0/bin/bundle install
+RUN bundle install
 #RUN bundle update --bundler
 
 #cleanup
 RUN rm -rf .git
 
 EXPOSE 8888
-CMD ["/root/.gem/ruby/2.7.0/bin/bundle", "exec", "./bin/aethyr", "run"]
+CMD ["bundle", "exec", "./bin/aethyr", "run"]
-- 
GitLab