Skip to content

Commit

Permalink
Use passenger to run dockerized instance
Browse files Browse the repository at this point in the history
We do this so Stacks can serve files (caption files, media files, etc.) directly without needing e.g. Wowza.
  • Loading branch information
mjgiarlo committed Dec 1, 2023
1 parent eeaa66b commit 4cdb1e4
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]
CMD ["./bin/rails", "server", "--binding=0.0.0.0"]

0 comments on commit 4cdb1e4

Please sign in to comment.