diff --git a/epicbox-ruby/Dockerfile b/epicbox-ruby/Dockerfile index 5fad796..0805878 100644 --- a/epicbox-ruby/Dockerfile +++ b/epicbox-ruby/Dockerfile @@ -1,8 +1,13 @@ -FROM ruby:2.5.3-alpine -MAINTAINER Stepik Team +FROM ruby:3.2.3-alpine3.18 +LABEL maintainer="Stepik Team " -RUN adduser -DH -h /sandbox sandbox && \ - apk add --no-cache --virtual build-dependencies build-base && \ - apk add --no-cache sqlite-dev && \ - gem install rspec:3.8.0 sqlite3:1.3.13 sequel:5.15.0 && \ +RUN adduser -DH -h /sandbox sandbox + +WORKDIR /sandbox + +COPY Gemfile Gemfile.lock ./ + +RUN apk add --no-cache --virtual build-dependencies build-base sqlite-dev make gcc musl-dev && \ + bundle config --global frozen 1 && \ + bundle install && \ apk del build-dependencies diff --git a/epicbox-ruby/Gemfile b/epicbox-ruby/Gemfile new file mode 100644 index 0000000..eb51029 --- /dev/null +++ b/epicbox-ruby/Gemfile @@ -0,0 +1,5 @@ +source "https://rubygems.org" + +gem "rspec", "~> 3.13" +gem "sqlite3", "~> 1.7" +gem "sequel", "~> 5.78" diff --git a/epicbox-ruby/Gemfile.lock b/epicbox-ruby/Gemfile.lock new file mode 100644 index 0000000..5650d0d --- /dev/null +++ b/epicbox-ruby/Gemfile.lock @@ -0,0 +1,32 @@ +GEM + remote: https://rubygems.org/ + specs: + bigdecimal (3.1.6) + diff-lcs (1.5.1) + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.0) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-support (3.13.1) + sequel (5.78.0) + bigdecimal + sqlite3 (1.7.2-x86_64-linux) + +PLATFORMS + x86_64-linux-musl + +DEPENDENCIES + rspec (~> 3.13) + sequel (~> 5.78) + sqlite3 (~> 1.7) + +BUNDLED WITH + 2.4.10