summaryrefslogtreecommitdiffstats
path: root/CLI/ruby/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'CLI/ruby/Dockerfile')
-rw-r--r--CLI/ruby/Dockerfile14
1 files changed, 14 insertions, 0 deletions
diff --git a/CLI/ruby/Dockerfile b/CLI/ruby/Dockerfile
new file mode 100644
index 0000000..42f98c0
--- /dev/null
+++ b/CLI/ruby/Dockerfile
@@ -0,0 +1,14 @@
+From alpine:3.18
+
+RUN apk add build-base ruby ruby-dev ruby-bundler
+
+WORKDIR /app
+COPY Gemfile Gemfile.lock game_of_life.gemspec .
+RUN bundle install
+
+COPY . .
+RUN bundle exec rake build
+RUN bundle exec rake install
+CMD game-of-life
+
+VOLUME /app