Skip to content

Commit 31a341e

Browse files
authored
Merge pull request rails#50689 from akhilgkrishnan/ignore-files-in-dockerignore
Ignore docker and git related files in dockerignore
2 parents 2b776fa + de3a9a1 commit 31a341e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# Ignore git directory.
44
/.git/
5+
/.gitignore
56

67
# Ignore bundler config.
78
/.bundle
@@ -46,3 +47,7 @@
4647
# Ignore CI service files.
4748
/.github
4849
<% end -%>
50+
51+
# Ignore Docker-related files
52+
/.dockerignore
53+
/Dockerfile*

0 commit comments

Comments
 (0)