mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
31 lines
569 B
Go
31 lines
569 B
Go
package langs
|
|
|
|
type LambdaNodeHelper struct {
|
|
BaseHelper
|
|
}
|
|
|
|
func (lh *LambdaNodeHelper) BuildFromImage() string {
|
|
return "funcy/functions-lambda:nodejs4.3"
|
|
}
|
|
|
|
func (lh *LambdaNodeHelper) Entrypoint() string {
|
|
return ""
|
|
}
|
|
|
|
func (lh *LambdaNodeHelper) Cmd() string {
|
|
return "func.handler"
|
|
}
|
|
|
|
func (lh *LambdaNodeHelper) HasPreBuild() bool {
|
|
return false
|
|
}
|
|
|
|
// PreBuild for Go builds the binary so the final image can be as small as possible
|
|
func (lh *LambdaNodeHelper) PreBuild() error {
|
|
return nil
|
|
}
|
|
|
|
func (lh *LambdaNodeHelper) AfterBuild() error {
|
|
return nil
|
|
}
|