blob: 7dfb50161eb072a1ef1d850ef6f8a7c4ba46af8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
FROM ruby:2.7.0-buster
RUN apt-get update -y && \
apt-get install -y ruby ruby-dev libtokyocabinet-dev zlib1g-dev libbz2-dev libxml2-dev libxslt1-dev
RUN gem install bundle
WORKDIR /opt/rbot
COPY Gemfile /opt/rbot/Gemfile
COPY Gemfile.lock /opt/rbot/Gemfile.lock
RUN bundle install
RUN useradd -ms /sbin/nologin rbot && chown rbot /opt/rbot && chown rbot -R /usr/local/bundle
USER rbot
COPY . /opt/rbot
#RUN gem build rbot.gemspec && \
# gem install rbot-0.9.15.gem
|