@leverege/build-tools 2.114.1 → 2.115.0-beta.1

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": "@leverege/build-tools",
3
- "version": "2.114.1",
3
+ "version": "2.115.0-beta.1",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "author": "Leverege Devs",
76
76
  "engines": {
77
- "node": "^22.22 || >=24",
77
+ "node": "^22.22 || >=24.15",
78
78
  "npm": ">=11.10"
79
79
  },
80
80
  "docker": {
package/src/Docker.mjs CHANGED
@@ -148,6 +148,10 @@ const generateDockerfile = async ( options ) => {
148
148
  if ( fs.existsSync( dockerfilePrePlugin ) ) {
149
149
  settings.preInstallPluginfile = fs.readFileSync( dockerfilePrePlugin )
150
150
  }
151
+ const dockerfileFinalStagePrePlugin = './docker/DockerfileFinalStagePreInstall.plugin'
152
+ if ( fs.existsSync( dockerfileFinalStagePrePlugin ) ) {
153
+ settings.finalStagePreInstallPluginfile = fs.readFileSync( dockerfileFinalStagePrePlugin )
154
+ }
151
155
 
152
156
  const compiled = handlebars.compile( dockerfileTemplate, { noEscape : true } )
153
157
  const replaced = compiled( settings )
@@ -70,6 +70,7 @@ RUN npm ci --only=production --no-optional {{npmlogging}} && \
70
70
  # --------------------------------------------------------------
71
71
 
72
72
  FROM {{image}}
73
+ {{finalStagePreInstallPluginfile}}
73
74
 
74
75
  ARG BUILD_ENV="{{buildEnv}}"
75
76
 
@@ -97,7 +98,7 @@ RUN if [ "$BUILD_ENV" = "debian" ]; then \
97
98
  npm install -g {{npmVersion}} && \
98
99
  {{/if}}
99
100
  rm /bin/sh && ln -s /bin/bash /bin/sh && \
100
- mkdir -p /usr/src/app /tmp/levlog && chown node:node /usr/src/app; \
101
+ mkdir -p /usr/src/app /tmp/levlog && chown {{runuser}}:{{runuser}} /usr/src/app; \
101
102
  else \
102
103
  apk update && \
103
104
  apk add --no-cache bash curl tini vim {{apkadds}} && \
@@ -108,7 +109,7 @@ RUN if [ "$BUILD_ENV" = "debian" ]; then \
108
109
  npm install -g {{npmVersion}} && \
109
110
  {{/if}}
110
111
  rm /bin/sh && ln -s /bin/bash /bin/sh && \
111
- mkdir -p /usr/src/app /tmp/levlog && chown node:node /usr/src/app; \
112
+ mkdir -p /usr/src/app /tmp/levlog && chown {{runuser}}:{{runuser}} /usr/src/app; \
112
113
  fi
113
114
 
114
115