File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ class RustPlugin {
44
44
{ }
45
45
) ;
46
46
47
+ this . dockerPath = path . resolve ( this . custom . dockerPath || this . servicePath ) ;
48
+
47
49
// By default, Serverless examines node_modules to figure out which
48
50
// packages there are from dependencies versus devDependencies of a
49
51
// package. While there will always be a node_modules due to Serverless
@@ -65,7 +67,7 @@ class RustPlugin {
65
67
'-e' ,
66
68
`BIN=${ binary } ` ,
67
69
`-v` ,
68
- `${ this . servicePath } :/code` ,
70
+ `${ this . dockerPath } :/code` ,
69
71
`-v` ,
70
72
`${ cargoRegistry } :/root/.cargo/registry` ,
71
73
`-v` ,
@@ -150,6 +152,7 @@ class RustPlugin {
150
152
// see https://serverless.com/framework/docs/providers/aws/guide/packaging/
151
153
// for more information
152
154
const artifactPath = path . join (
155
+ this . dockerPath ,
153
156
`target/lambda/${ "dev" === profile ? "debug" : "release" } ` ,
154
157
binary + ".zip"
155
158
) ;
You can’t perform that action at this time.
0 commit comments