diff --git a/Dockerfile b/Dockerfile
index 2ca6a06964a9038c13d0c5137be2478f779d2e82..06f0a5753d560ea999b0ed9304ebc17a7f64bb90 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"]