@addev-be/framework-utils 0.21.1 → 0.21.3

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.
@@ -7,16 +7,17 @@ import { spawn } from 'child_process';
7
7
  * @param {string} tag - Image tag (e.g., 'my-image:latest').
8
8
  * @returns {Promise<void>} Resolves when the build is complete.
9
9
  */
10
- export async function buildDockerImage(directory, tag, registryUrl) {
10
+ export async function buildDockerImage(imageFile, tag, registryUrl) {
11
11
  return new Promise((resolve, reject) => {
12
12
  const args = [
13
13
  'build',
14
- '.',
15
14
  '-t',
16
15
  `${registryUrl ? registryUrl + '/' : ''}${tag}`,
16
+ '-f',
17
+ imageFile,
18
+ '.',
17
19
  ];
18
20
  const buildProcess = spawn('docker', args, {
19
- cwd: path.resolve(directory),
20
21
  stdio: 'inherit',
21
22
  });
22
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@addev-be/framework-utils",
3
- "version": "0.21.1",
3
+ "version": "0.21.3",
4
4
  "type": "module",
5
5
  "export": {
6
6
  "node": {