Skip to content

Commit 7c60b9b

Browse files
committed
Update Ruby version in Dockerfile and configuration to 3.4
1 parent ebd6427 commit 7c60b9b

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

dockerfiles/ruby-3.4.Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# syntax=docker/dockerfile:1.7-labs
2+
FROM ruby:3.4-alpine3.23
3+
4+
# Required for installing the json/async gems
5+
RUN apk add --no-cache \
6+
build-base~=0.5 \
7+
libssl3~=3.5 \
8+
readline-dev~=8.3 \
9+
zlib-dev~=1.3
10+
11+
# Re-build if Gemfile or Gemfile.lock changes
12+
ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Gemfile,Gemfile.lock"
13+
14+
WORKDIR /app
15+
16+
# .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses
17+
COPY --exclude=.git --exclude=README.md . /app
18+
19+
RUN bundle install --verbose

starter_templates/ruby/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
attributes:
2-
required_executable: ruby (2.7)
2+
required_executable: ruby (3.4)
33
user_editable_file: app/server.rb

0 commit comments

Comments
 (0)