]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
added simple dockerfile
authorMatthias Hecker <mail@apoc.cc>
Tue, 31 Mar 2020 12:28:55 +0000 (14:28 +0200)
committerMatthias Hecker <mail@apoc.cc>
Tue, 31 Mar 2020 12:28:55 +0000 (14:28 +0200)
Dockerfile [new file with mode: 0644]

diff --git a/Dockerfile b/Dockerfile
new file mode 100644 (file)
index 0000000..7dfb501
--- /dev/null
@@ -0,0 +1,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
+