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

     1  FROM ruby:3.2.1
     2  
     3  WORKDIR /usr/src/app
     4  
     5  RUN adduser --disabled-password --gecos --quiet pyroscope
     6  USER pyroscope
     7  
     8  COPY --from=pyroscope/pyroscope:latest /usr/bin/pyroscope /usr/bin/pyroscope
     9  COPY main.rb ./main.rb
    10  COPY Gemfile ./Gemfile
    11  COPY Gemfile.lock ./Gemfile.lock
    12  
    13  ENV PYROSCOPE_APPLICATION_NAME=simple.ruby.app
    14  ENV PYROSCOPE_SERVER_ADDRESS=http://pyroscope:4040/
    15  ENV PYROSCOPE_LOG_LEVEL=debug
    16  
    17  RUN bundle install
    18  
    19  CMD ["ruby", "main.rb"]