Skip to content

Commit

Permalink
update system deps
Browse files Browse the repository at this point in the history
  • Loading branch information
glasnt committed Sep 3, 2024
1 parent 53a103b commit 78b60bf
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions run/rails/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,11 @@
# https://hub.docker.com/_/ruby

# [START cloudrun_rails_base_image]
# Pinning the OS to bookworm because the nodejs install script is bookworm-specific.
# Be sure to update the nodejs install command if the base image OS is updated.
FROM ruby:3.3-bookworm
# [END cloudrun_rails_base_image]

RUN (curl -sS https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | apt-key add -) && \
echo "deb https://deb.nodesource.com/node_22.x bookworm main" > /etc/apt/sources.list.d/nodesource.list && \
apt-get update && apt-get install -y nodejs lsb-release

RUN (curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -) && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get update && apt-get install -y yarn
RUN apt update && apt install yarnpkg nodejs && \
ln -s /usr/bin/yarnpkg /usr/bin/yarn

WORKDIR /app

Expand All @@ -25,7 +18,6 @@ RUN gem install bundler && \
bundle config set --local without 'development test' && \
bundle install


# Copy application code to the container image
COPY . /app

Expand Down

0 comments on commit 78b60bf

Please sign in to comment.