Last active
July 30, 2019 19:57
-
-
Save adigunhammedolalekan/d995b43af7bf8450d0c6688bb67f93a5 to your computer and use it in GitHub Desktop.
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
func createBuildContext() (io.Reader, error) { | |
// get current working dir | |
wd, err := os.Getwd() | |
if err != nil { | |
return nil, err | |
} | |
// resolve Dockerfile path | |
path := filepath.join(wd, "Dockerfile") | |
return os.Open(path) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment