@travetto/pack 5.0.0-rc.14 → 5.0.0-rc.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/pack",
3
- "version": "5.0.0-rc.14",
3
+ "version": "5.0.0-rc.16",
4
4
  "description": "Code packing utilities",
5
5
  "keywords": [
6
6
  "travetto",
@@ -40,6 +40,9 @@ export class PackConfigUtil {
40
40
  `RUN npm install ${item}`
41
41
  );
42
42
  }
43
+ if (out.length) {
44
+ out.unshift(`WORKDIR ${cfg.dockerRuntime.folder}`);
45
+ }
43
46
  return out.join('\n');
44
47
  }
45
48
 
@@ -114,7 +117,6 @@ export class PackConfigUtil {
114
117
  this.dockerPorts(cfg),
115
118
  this.dockerUser(cfg),
116
119
  this.dockerPackageInstall(cfg),
117
- this.dockerNodePackageInstall(cfg),
118
120
  this.dockerAppFolder(cfg),
119
121
  this.dockerAppFiles(cfg),
120
122
  this.dockerEnvVars(cfg),
@@ -128,6 +130,7 @@ export class PackConfigUtil {
128
130
  return [
129
131
  this.dockerInit(cfg),
130
132
  this.dockerWorkspace(cfg),
133
+ this.dockerNodePackageInstall(cfg),
131
134
  this.dockerEntrypoint(cfg)
132
135
  ].join('\n');
133
136
  }