summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Hecker <mail@apoc.cc>2020-03-31 14:28:55 +0200
committerMatthias Hecker <mail@apoc.cc>2020-03-31 14:28:55 +0200
commitd93e93aec895f477ac6e46942ea8cb1c1084d95a (patch)
treea98c6c29b90f3ae7a7e8be9c3b0e432b1fc6e177
parenta19f7bfb97e5f36e6b282fcc0982584838e86a0a (diff)
added simple dockerfile
-rw-r--r--Dockerfile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 00000000..7dfb5016
--- /dev/null
+++ b/Dockerfile
@@ -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
+