@faable/faable 1.5.13 → 1.5.15

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.
@@ -42,7 +42,7 @@ const build_docker = async (props) => {
42
42
  log.info(`📦 Packaging inside a docker image`);
43
43
  // Build options
44
44
  const timeout = 10 * 60 * 1000; // 10 minute timeout
45
- await cmd(`docker build -t ${app.id} ${workdir} -f -<<EOF\n${dockerfile}\nEOF`, { timeout, enableOutput: true });
45
+ await cmd(`docker build --platform linux/amd64 -t ${app.id} ${workdir} -f -<<EOF\n${dockerfile}\nEOF`, { timeout, enableOutput: true });
46
46
  };
47
47
 
48
48
  export { build_docker };
package/dist/lib/cmd.js CHANGED
@@ -11,7 +11,10 @@ const cmd = async (cmd, config) => {
11
11
  stdio: enableOutput ? "inherit" : "pipe",
12
12
  timeout,
13
13
  cwd,
14
- ...(config?.env ? { env: config?.env } : {}),
14
+ env: {
15
+ ...process.env,
16
+ ...config?.env,
17
+ },
15
18
  });
16
19
  const out_data = [];
17
20
  child.stderr?.on("data", (data) => {
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "yaml": "^2.8.2",
15
15
  "yargs": "^18.0.0"
16
16
  },
17
- "version": "1.5.13",
17
+ "version": "1.5.15",
18
18
  "bin": {
19
19
  "faable": "bin/faable.js"
20
20
  },