MCPcopy Create free account
hub / github.com/coder/envbuilder / HasDockerfile

Method HasDockerfile

devcontainer/devcontainer.go:132–134  ·  view source on GitHub ↗

HasDockerfile returns true if the devcontainer.json specifies the path to a Dockerfile.

()

Source from the content-addressed store, hash-verified

130// HasDockerfile returns true if the devcontainer.json specifies the path to a
131// Dockerfile.
132func (s Spec) HasDockerfile() bool {
133 return s.Dockerfile != "" || s.Build.Dockerfile != ""
134}
135
136// Compile returns the build parameters for the workspace.
137// devcontainerDir is the path to the directory where the devcontainer.json file

Callers 2

runFunction · 0.95
RunCacheProbeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected