Skip to content

Commit

Permalink
feat: upgrade to ruby 3.3 closes #33
Browse files Browse the repository at this point in the history
  • Loading branch information
ghassanmas committed Aug 20, 2024
1 parent a1b4482 commit 750450b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
💥[Feature] upgrade to Ruby 3.3 (by @ghassanmas).
9 changes: 4 additions & 5 deletions tutorforum/templates/forum/build/forum/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# https://hub.docker.com/_/ruby/tags
FROM docker.io/ruby:3.0.5-slim-bullseye
FROM docker.io/ruby:3.3.1-slim-bullseye

ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && \
Expand All @@ -16,9 +16,9 @@ RUN useradd --home-dir /app --create-home --shell /bin/bash --uid 1000 app
USER app

# Install rake and bundler
ENV PATH=/app/.gem/ruby/3.0.4/bin:$PATH
RUN gem install --user-install bundler --version 2.3.4
RUN gem install --user-install rake --version 13.0.6
ENV PATH=/app/.gem/ruby/3.3.1/bin:$PATH
RUN gem install --user-install bundler --version 2.3.26
RUN gem install --user-install rake --version 13.1.0

# Clone repo
ARG FORUM_REPOSITORY={{ FORUM_REPOSITORY }}
Expand All @@ -27,7 +27,6 @@ RUN git clone $FORUM_REPOSITORY --branch $FORUM_REPOSITORY_VERSION --depth 1 /ap

# Install ruby requirements
WORKDIR /app/cs_comments_service
ENV BUNDLE_GEMFILE=Gemfile3
RUN bundle config set --local deployment 'true'
RUN bundle install

Expand Down

0 comments on commit 750450b

Please sign in to comment.