TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Static Analysis for Dockerfiles

49 pointsby bradleybudaover 5 years ago

3 comments

addcnover 5 years ago
Static analysis is great here — it’s definitely a constrained domain where it could shine w&#x2F;o many of the issues that defined it a decade ago.<p>I bet you could take this a lot further by incorporating a runtime component as well. I mean it’s a container — it’s meant to be incrementally built up and destroyed.<p>By looking at the state of the container before and after a line you could do so much.<p>i.e. This innocent looking apt-get install has the side effect of making X directory writable.
simbakhadderover 5 years ago
This is smart, would love if it got smart enough to analyze .dockerignore files, and (if you&#x27;re analyzing our code with the rest of your tool anyway) you could find large files&#x2F;directories that we COPY&#x2F;ADD and don&#x27;t need
评论 #21718293 未加载
dbauppover 5 years ago
How does this differ to <a href="https:&#x2F;&#x2F;github.com&#x2F;hadolint&#x2F;hadolint" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hadolint&#x2F;hadolint</a> ?