Title: Possible .dockerignore misconfiguration · Issue #17135 · stackrox/stackrox · GitHub
Open Graph Title: Possible .dockerignore misconfiguration · Issue #17135 · stackrox/stackrox
X Title: Possible .dockerignore misconfiguration · Issue #17135 · stackrox/stackrox
Description: Hello, and thank you for your work on this repository! As part of my research, I am analyzing how developers configure .dockerignore in popular repositories. During my analysis, I noticed that /ui/.dockerignore might have been written un...
Open Graph Description: Hello, and thank you for your work on this repository! As part of my research, I am analyzing how developers configure .dockerignore in popular repositories. During my analysis, I noticed that /ui/...
X Description: Hello, and thank you for your work on this repository! As part of my research, I am analyzing how developers configure .dockerignore in popular repositories. During my analysis, I noticed that /ui/...
Opengraph URL: https://github.com/stackrox/stackrox/issues/17135
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Possible .dockerignore misconfiguration","articleBody":"Hello, and thank you for your work on this repository!\n\nAs part of my research, I am analyzing how developers configure .dockerignore in popular repositories.\n\nDuring my analysis, I noticed that `/ui/.dockerignore` might have been written under the assumption that .dockerignore and .gitignore follow the same pattern semantics, while they actually differ.[^1] In particular, the following pattern drew my attention:\n\nhttps://github.com/stackrox/stackrox/blob/f484ff5915fa8d7aff0bcd0e6218e44a82dd1e0f/ui/.dockerignore#L1\n\nAccording to Docker's specification, this pattern matches `node_modules` only in the top-level directory. (To ignore `node_modules` in any directory, the .dockerignore file needs to list `**/node_modules`)\n\nWas this pattern written intentionally? If not, I'd be happy to submit a pull request to adjust it.\n\nAnd if possible, could you tell me whether you were aware of the difference between .dockerignore and .gitignore? (I would like to know whether the differences are generally well recognized, or if they tend to slip developers' minds.)\n\nThank you again for maintaining this repository!\n\n[^1]: See [.gitignore doc](https://git-scm.com/docs/gitignore), [.dockerignore doc](https://docs.docker.com/build/concepts/context/#dockerignore-files), and [a blog post about the differences](https://zzz.buzz/2018/05/23/differences-of-rules-between-gitignore-and-dockerignore/)\n","author":{"url":"https://github.com/tomokinakamaru","@type":"Person","name":"tomokinakamaru"},"datePublished":"2025-10-06T05:01:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/17135/stackrox/issues/17135"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bb3847e7-0d1e-3d54-5a12-69a50d2495bc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF42:3D742A:3ED30F4:560DDCC:6980C76B |
| html-safe-nonce | 3888dddb4f203bfbf23ba65dd5c4c764611c6377d3e50498c31fd999253f5135 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjQyOjNENzQyQTozRUQzMEY0OjU2MEREQ0M6Njk4MEM3NkIiLCJ2aXNpdG9yX2lkIjoiNTYzNTk5NjY2MTg2MDg0NTQxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2c8f4f3995505f1f823b9efa7e557104b2593cb19b60d35ff2bd42fa2c3c0c3d |
| hovercard-subject-tag | issue:3485690729 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stackrox/stackrox/17135/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ccd7fe9ec986f8e232898a1d8e855c65797c44dbb3550ce48e69f2f7a646e198/stackrox/stackrox/issues/17135 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ccd7fe9ec986f8e232898a1d8e855c65797c44dbb3550ce48e69f2f7a646e198/stackrox/stackrox/issues/17135 |
| og:image:alt | Hello, and thank you for your work on this repository! As part of my research, I am analyzing how developers configure .dockerignore in popular repositories. During my analysis, I noticed that /ui/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tomokinakamaru |
| hostname | github.com |
| expected-hostname | github.com |
| None | c940d5e308643c0003d2824389ea8281bcaae0a9a0d07438e3fb5e0bdc4fef12 |
| turbo-cache-control | no-preview |
| go-import | github.com/stackrox/stackrox git https://github.com/stackrox/stackrox.git |
| octolytics-dimension-user_id | 40638982 |
| octolytics-dimension-user_login | stackrox |
| octolytics-dimension-repository_id | 434017296 |
| octolytics-dimension-repository_nwo | stackrox/stackrox |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 434017296 |
| octolytics-dimension-repository_network_root_nwo | stackrox/stackrox |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bb3d0fe9b8e408797775c5db420b1ee5ff06e4d0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width