Skip to content

Commit

Permalink
chore: update dockerfile for the rails example (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
Iwaide committed Apr 7, 2023
1 parent ff7df1b commit 7394525
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/rails/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
FROM ruby:3.0 AS builder

# Install nodejs in the ruby image
RUN curl -sL https://deb.nodesource.com/setup_15.x | bash - && apt-get install -y nodejs
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs
RUN npm install -g yarn

# Gems and packages will be cached in a separate image using a mounted volume.
ENV BUNDLE_PATH /bundler_cache
ENV YARN_CACHE_FOLDER /yarn_cache
ENV BUNDLER_VERSION 2.3.22

# Match the version of Bundler with that specified in Gemfile.lock
RUN gem update --system \
&& gem install bundler -v $BUNDLER_VERSION

# Set working directory inside the image home.
ENV APP_PATH /app
Expand Down

0 comments on commit 7394525

Please sign in to comment.