File: Dockerfile

package info (click to toggle)
ruby-jaeger-client 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 624 kB
  • sloc: ruby: 3,381; makefile: 6; sh: 4
file content (31 lines) | stat: -rw-r--r-- 900 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM ruby:2.7-alpine

ENV APP_HOME /app

# git is required by bundler to run jaeger gem with local path
RUN apk add --no-cache git

# Add only files needed for installing gem dependencies. This allows us to
# change other files without needing to install gems every time when building
# the docker image.
ADD Gemfile Gemfile.lock jaeger-client.gemspec $APP_HOME/
ADD lib/jaeger/client/version.rb $APP_HOME/lib/jaeger/client/
ADD crossdock/Gemfile crossdock/Gemfile.lock $APP_HOME/crossdock/

RUN gem install bundler -v $(tail -n 1 $APP_HOME/Gemfile.lock | awk '{$1=$1};1')

RUN apk add --no-cache --virtual .app-builddeps build-base \
  && cd $APP_HOME && bundle install \
  && cd $APP_HOME/crossdock && bundle install \
  && apk del .app-builddeps

ADD . $APP_HOME

RUN chown -R nobody:nogroup $APP_HOME
USER nobody

WORKDIR $APP_HOME/crossdock

CMD ["bundle", "exec", "./server"]

EXPOSE 8080-8082