From 36c22fba73375f18ad46334a27d6b418309448e8 Mon Sep 17 00:00:00 2001 From: Ahmed AbdelHalim Date: Sun, 2 Jul 2023 19:19:17 +0200 Subject: Use docker for ruby dev and fix yard with ruby 3 --- CLI/ruby/Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 CLI/ruby/Dockerfile (limited to 'CLI/ruby/Dockerfile') 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 -- cgit v1.2.3