@aifabrix/builder 2.0.4 → 2.0.5
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/README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@aifabrix/builder)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
|
|
5
6
|
Local development infrastructure + Azure deployment tool.
|
|
6
7
|
|
|
7
8
|
## Install
|
|
@@ -107,14 +107,18 @@ function buildRequiresConfig(config) {
|
|
|
107
107
|
* @returns {Object} Service configuration
|
|
108
108
|
*/
|
|
109
109
|
function buildServiceConfig(appName, config, port) {
|
|
110
|
-
|
|
110
|
+
// Host port is the local port (from options.port or build.localPort)
|
|
111
|
+
const hostPort = port;
|
|
112
|
+
// Container port: use build.containerPort if specified, otherwise use port config
|
|
113
|
+
const containerPortValue = config.build?.containerPort || config.port || hostPort;
|
|
111
114
|
|
|
112
115
|
return {
|
|
113
116
|
app: buildAppConfig(appName, config),
|
|
114
117
|
image: buildImageConfig(config, appName),
|
|
115
|
-
port:
|
|
118
|
+
port: containerPortValue, // Container port (for health check and template)
|
|
119
|
+
containerPort: config.build?.containerPort || null, // Explicit containerPort if specified, null otherwise
|
|
116
120
|
build: {
|
|
117
|
-
localPort: port
|
|
121
|
+
localPort: hostPort // Host port
|
|
118
122
|
},
|
|
119
123
|
healthCheck: buildHealthCheckConfig(config),
|
|
120
124
|
...buildRequiresConfig(config)
|
package/package.json
CHANGED