Skip to content

Commit 7394525

Browse files
authored
chore: update dockerfile for the rails example (ElMassimo#351)
1 parent ff7df1b commit 7394525

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/rails/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
FROM ruby:3.0 AS builder
22

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

77
# Gems and packages will be cached in a separate image using a mounted volume.
88
ENV BUNDLE_PATH /bundler_cache
99
ENV YARN_CACHE_FOLDER /yarn_cache
10+
ENV BUNDLER_VERSION 2.3.22
11+
12+
# Match the version of Bundler with that specified in Gemfile.lock
13+
RUN gem update --system \
14+
&& gem install bundler -v $BUNDLER_VERSION
1015

1116
# Set working directory inside the image home.
1217
ENV APP_PATH /app

0 commit comments

Comments
 (0)