Commit 3abca6a7 authored by CHRISTOPHER PIKE's avatar CHRISTOPHER PIKE

docker eval on start, add -f to docker build

parent ad1485ef
......@@ -34,6 +34,8 @@ var buildCmd = &cobra.Command{
Use: "build",
Short: "build the application",
Run: func(cmd *cobra.Command, args []string) {
environment.EvalDockerEnv()
err := environment.Run(true, "minikube", "status")
if err != nil {
color.Red("Minikube is not started... run `devtool start` first.")
......@@ -119,7 +121,7 @@ func buildDockerAndDeploy(config config.Config) error {
dockerTag := image + ":" + tag.String()
color.New(color.FgGreen).PrintFunc()("Building %s", dockerTag)
err = environment.Run(true, "docker", "build", "-t", dockerTag, dockerfile)
err = environment.Run(true, "docker", "build", "-t", dockerTag, "-f", dockerfile, ".")
if err != nil {
return err
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment