feat: add source

This commit is contained in:
franklin 2023-03-27 18:10:06 +02:00
parent e66c1eb16d
commit bb27543e53

View File

@ -104,7 +104,7 @@ func (c *Command) execute(ctx context.Context, r *readline.Readline) error {
if err := shell.New(ctx, c.l,
"docker", "build",
"--build-arg", fmt.Sprintf("TAG=%s", c.cfg.NodeTag),
"--build-arg", "SOURCE=.posh/docs",
"--build-arg", fmt.Sprintf("SOURCE=%s", c.cfg.SourcePath),
"-t", fmt.Sprintf("%s:%s", c.cfg.ImageName, c.cfg.ImageTag),
"-f", "-",
".",