From 5e10dda8efb20aed2dcd504ca1892885338dd7b9 Mon Sep 17 00:00:00 2001 From: Ashwini Sukale Date: Fri, 15 Nov 2024 14:18:50 +0530 Subject: [PATCH] Replace the /sbin/setuser app bundle install line with the following to properly run bundle install as the app user --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index eea92c1..eb2bcdf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,7 +46,7 @@ RUN mkdir -p /home/app/webapp/vendor/bundle && \ WORKDIR /home/app/webapp RUN gem install rubygems-update -v 3.5.6 && \ gem install bundler:2.5.6 && \ - /sbin/setuser app bundle install --path vendor/bundle + su - app -c "bundle install --path vendor/bundle" # Run additional scripts during container startup (i.e. not at build time) WORKDIR /home/app/webapp