Add force-rebuild flag to allow user to rebuild docker container explicitly.
diff --git a/cmd/sketch/main.go b/cmd/sketch/main.go
index 5134802..ef13053 100644
--- a/cmd/sketch/main.go
+++ b/cmd/sketch/main.go
@@ -49,6 +49,7 @@
version := flag.Bool("version", false, "print the version and exit")
workingDir := flag.String("C", "", "when set, change to this directory before running")
sshPort := flag.Int("ssh_port", 0, "the host port number that the container's ssh server will listen on, or a randomly chosen port if this value is 0")
+ forceRebuild := flag.Bool("force-rebuild-container", false, "rebuild Docker container")
// Flags geared towards sketch developers or sketch internals:
gitUsername := flag.String("git-username", "", "(internal) username for git commits")
@@ -198,7 +199,7 @@
SketchBinaryLinux: *sketchBinaryLinux,
SketchPubKey: pubKey,
SSHPort: *sshPort,
- ForceRebuild: false,
+ ForceRebuild: *forceRebuild,
OutsideHostname: getHostname(),
OutsideOS: runtime.GOOS,
OutsideWorkingDir: cwd,