Skip to content

Commit 965f6d4

Browse files
Set fully qualified reference name for base image (rails#47888)
Explicitly set the fully qualified reference name to avoid issues in environments which set a different default registry. The registry at registry.docker.com is dual stack-compatible.
1 parent 23fdde8 commit 965f6d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/app/templates/Dockerfile.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
44
ARG RUBY_VERSION=<%= Gem.ruby_version %>
5-
FROM ruby:$RUBY_VERSION-slim as base
5+
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base
66

77
# Rails app lives here
88
WORKDIR /rails

0 commit comments

Comments
 (0)