Dockerfile in project #227
-
Here is a simple, 2-stage dockerfile.
Note: The downgrade to 0.2.1 is just a workaround to a regression that happens to exist as I'm working on this, and isn't necessarily otherwise. Another note: I'm using ubuntu because I've had trouble running go v8 on alpine, if anyone can do this I'd be interested. Anyways, is there interest in cleaning this up and dropping something like this into new projects on |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Awesome, thanks for sharing!
We'll be moving to Goja soon so all the V8 woes will no longer be a problem 😄
I think this should start out as a custom command plugin. Custom commands are something I'd like to return to after v0.3 is out. You should be able to add your own scaffolders. Something like package dockerfile
type Command struct {
// dependencies
}
type Flag struct {
// flags
}
func (c *Command) Dockerfile(ctx context.Context, flag *Flag, arg1 int, arg2 string) error {
// scaffold docker file
return nil
} |
Beta Was this translation helpful? Give feedback.
Awesome, thanks for sharing!
We'll be moving to Goja soon so all the V8 woes will no longer be a problem 😄
I think this should start out as a custom command plugin. Custom commands are something I'd like to return to after v0.3 is out. You should be able to add your own scaffolders.
Something like
command/add/dockerfile/command.go
: