summaryrefslogtreecommitdiffstats
path: root/CLI/ruby/Dockerfile
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2023-07-02 19:19:17 +0200
committerAhmed AbdelHalim <[email protected]>2023-07-02 19:19:17 +0200
commit36c22fba73375f18ad46334a27d6b418309448e8 (patch)
tree7017a6d74c7d0e5cb218a88072062ff91f7766f8 /CLI/ruby/Dockerfile
parent58fefe99f933343f7c5556ca3bc719743c54f322 (diff)
Use docker for ruby dev and fix yard with ruby 3
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