From a33410fcf444a47c69d3b024707ea2fec14d109a Mon Sep 17 00:00:00 2001 From: Tom Naessens Date: Mon, 18 Mar 2024 00:06:47 +0100 Subject: [PATCH] . --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7053241..9450a14 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,8 @@ FROM ruby:3.3.0 ENV RAILS_ENV=production +RUN adduser --system --group factuur + WORKDIR /app # Install Yarn @@ -16,8 +18,14 @@ RUN bundle install COPY . /app +RUN chown -R factuur:factuur /app + RUN yarn install RUN bundle exec rails assets:precompile +RUN chown -R factuur:factuur /app + +USER factuur + CMD bundle exec rails s -b 0.0.0.0