File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
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
@@ -58,15 +60,14 @@ class RustPlugin {
58
60
const cargoDownloads = path . join ( cargoHome , 'git' ) ;
59
61
60
62
const dockerCLI = process . env [ 'SLS_DOCKER_CLI' ] || 'docker' ;
61
- const dockerPath = path . resolve ( this . custom . dockerPath || this . servicePath ) ;
62
63
const defaultArgs = [
63
64
'run' ,
64
65
'--rm' ,
65
66
'-t' ,
66
67
'-e' ,
67
68
`BIN=${ binary } ` ,
68
69
`-v` ,
69
- `${ dockerPath } :/code` ,
70
+ `${ this . dockerPath } :/code` ,
70
71
`-v` ,
71
72
`${ cargoRegistry } :/root/.cargo/registry` ,
72
73
`-v` ,
@@ -151,6 +152,7 @@ class RustPlugin {
151
152
// see https://serverless.com/framework/docs/providers/aws/guide/packaging/
152
153
// for more information
153
154
const artifactPath = path . join (
155
+ this . dockerPath ,
154
156
`target/lambda/${ "dev" === profile ? "debug" : "release" } ` ,
155
157
binary + ".zip"
156
158
) ;
You can’t perform that action at this time.
0 commit comments