Skip to content

Commit

Permalink
ruby 3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwi committed Feb 5, 2024
1 parent 10242be commit 275191b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bin/docker-entrypoint-development
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
rm -f /usr/src/app/tmp/pids/server.pid

echo "bundle install..."
bundle check || bundle install --jobs 4
bundle check || bundle install --jobs $(nproc)

# Then exec the container's main process (what's set as CMD in the Dockerfile).
exec "$@"
21 changes: 16 additions & 5 deletions development.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1

# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
ARG RUBY_VERSION=3.3.0
ARG RUBY_VERSION=3.2.2
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base

# OS Level Dependencies
Expand All @@ -13,13 +13,24 @@ RUN --mount=type=cache,target=/var/cache/apt \
apt-get update -qq \
&& apt-get install -yq --no-install-recommends \
build-essential \
gnupg2 \
less \
curl \
git \
libpq-dev \
postgresql-client \
libvips \
curl
node-gyp \
pkg-config \
postgresql-client \
python-is-python3

# Install JavaScript dependencies
ARG NODE_VERSION=20.11.0
ARG YARN_VERSION=1.22.21
ENV PATH=/usr/local/node/bin:$PATH
RUN curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar xz -C /tmp/ && \
/tmp/node-build-master/bin/node-build "${NODE_VERSION}" /usr/local/node && \
npm install -g yarn@$YARN_VERSION && \
rm -rf /tmp/node-build-master


ENV LANG=C.UTF-8 \
BUNDLE_JOBS=4 \
Expand Down

0 comments on commit 275191b

Please sign in to comment.