github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/examples/ruby/rideshare_rails/Dockerfile (about)

     1  FROM ruby:2.7.4
     2  
     3  RUN mkdir -p /usr/src/app
     4  WORKDIR /usr/src/app
     5  
     6  ENV RAILS_ENV production
     7  ENV RAILS_SERVE_STATIC_FILES true
     8  ENV RAILS_LOG_TO_STDOUT true
     9  
    10  COPY Gemfile /usr/src/app/
    11  COPY Gemfile.lock /usr/src/app/
    12  
    13  RUN bundle config --global frozen 1
    14  RUN bundle install --without development test
    15  
    16  COPY app /usr/src/app/app
    17  COPY bin /usr/src/app/bin
    18  COPY config /usr/src/app/config
    19  COPY public /usr/src/app/public
    20  
    21  COPY Rakefile /usr/src/app/
    22  COPY config.ru /usr/src/app/
    23  
    24  EXPOSE 3000
    25  
    26  RUN rm -f tmp/pids/server.pid
    27  
    28  CMD ["rails", "s", "-b", "0.0.0.0"] 
    29