Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNaessens committed Mar 17, 2024
1 parent de37e0b commit a33410f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ FROM ruby:3.3.0

ENV RAILS_ENV=production

RUN adduser --system --group factuur

WORKDIR /app

# Install Yarn
Expand All @@ -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

0 comments on commit a33410f

Please sign in to comment.