From 4cdb1e4047f85432873a3f8d2af1894521d412c4 Mon Sep 17 00:00:00 2001 From: "Michael J. Giarlo" Date: Thu, 30 Nov 2023 16:24:01 -0800 Subject: [PATCH] Use passenger to run dockerized instance We do this so Stacks can serve files (caption files, media files, etc.) directly without needing e.g. Wowza. --- Dockerfile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index f48d598b..de8e70af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,16 +2,12 @@ ARG RUBY_VERSION=3.2.2-alpine FROM ruby:$RUBY_VERSION RUN apk add --update --no-cache \ - build-base \ - git \ - tzdata + build-base \ + git \ + tzdata WORKDIR /app -ENV RAILS_ENV="production" \ - BUNDLER_WITHOUT="development test" \ - RAILS_SERVE_STATIC_FILES="true" - COPY Gemfile Gemfile.lock ./ RUN bundle install @@ -25,4 +21,4 @@ RUN bundle exec bootsnap precompile --gemfile app/ lib/ RUN SECRET_KEY_BASE_DUMMY=1 bundle exec rails assets:precompile EXPOSE 3000 -CMD ["./bin/rails", "server"] \ No newline at end of file +CMD ["./bin/rails", "server", "--binding=0.0.0.0"]