forked from rails/rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Binds the server to all IP addresses of the container, so it can be accessed from outside the container.
- Loading branch information
1 parent
8c7e394
commit 51dc39f
Showing
3 changed files
with
6 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
railties/lib/rails/generators/rails/devcontainer/templates/devcontainer/Dockerfile.tt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version | ||
ARG RUBY_VERSION=<%= Gem.ruby_version %> | ||
FROM ghcr.io/rails/devcontainer/images/ruby:$RUBY_VERSION | ||
|
||
# Ensure binding is always 0.0.0.0 | ||
# Binds the server to all IP addresses of the container, so it can be accessed from outside the container. | ||
ENV BINDING="0.0.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters