containerify 2.5.0 → 2.5.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.
@@ -166,21 +166,19 @@ function parseCommandLineToParts(entrypoint) {
166
166
  }
167
167
  function addAppLayers(options, config, todir, manifest, tmpdir) {
168
168
  return __awaiter(this, void 0, void 0, function* () {
169
+ addEmptyLayer(config, options, `WORKDIR ${options.workdir}`, (config) => (config.config.WorkingDir = options.workdir));
170
+ const entrypoint = parseCommandLineToParts(options.entrypoint);
171
+ addEmptyLayer(config, options, `ENTRYPOINT ${JSON.stringify(entrypoint)}`, (config) => (config.config.Entrypoint = entrypoint));
172
+ addEmptyLayer(config, options, `USER ${options.user}`, (config) => {
173
+ config.config.User = options.user;
174
+ config.container_config.User = options.user;
175
+ });
176
+ yield addEnvsLayer(options, config);
177
+ yield addLabelsLayer(options, config);
169
178
  if (options.customContent.length > 0) {
170
- yield addEnvsLayer(options, config);
171
- yield addLabelsLayer(options, config);
172
179
  yield addDataLayer(tmpdir, todir, options, config, manifest, options.customContent, "custom");
173
180
  }
174
181
  else {
175
- addEmptyLayer(config, options, `WORKDIR ${options.workdir}`, (config) => (config.config.WorkingDir = options.workdir));
176
- const entrypoint = parseCommandLineToParts(options.entrypoint);
177
- addEmptyLayer(config, options, `ENTRYPOINT ${JSON.stringify(entrypoint)}`, (config) => (config.config.Entrypoint = entrypoint));
178
- addEmptyLayer(config, options, `USER ${options.user}`, (config) => {
179
- config.config.User = options.user;
180
- config.container_config.User = options.user;
181
- });
182
- yield addEnvsLayer(options, config);
183
- yield addLabelsLayer(options, config);
184
182
  const appFiles = (yield fs_1.promises.readdir(options.folder)).filter((l) => !ignore.includes(l));
185
183
  const depLayerContent = appFiles.filter((l) => depLayerPossibles.includes(l));
186
184
  const appLayerContent = appFiles.filter((l) => !depLayerPossibles.includes(l));
package/lib/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "2.5.0";
1
+ export declare const VERSION = "2.5.1";
package/lib/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "2.5.0";
4
+ exports.VERSION = "2.5.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "containerify",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Build node.js docker images without docker",
5
5
  "main": "./lib/cli.js",
6
6
  "scripts": {
@@ -18,11 +18,6 @@
18
18
  },
19
19
  "author": "Erlend Oftedal <erlend@oftedal.no>",
20
20
  "license": "Apache-2.0",
21
- "dependencies": {
22
- "commander": "^10.0.0",
23
- "fs-extra": "^11.1.0",
24
- "tar": "^6.1.13"
25
- },
26
21
  "repository": {
27
22
  "type": "git",
28
23
  "url": "https://github.com/eoftedal/containerify.git"
@@ -35,6 +30,11 @@
35
30
  "container",
36
31
  "image"
37
32
  ],
33
+ "dependencies": {
34
+ "commander": "^11.0.0",
35
+ "fs-extra": "^11.1.0",
36
+ "tar": "^6.1.13"
37
+ },
38
38
  "devDependencies": {
39
39
  "@types/fs-extra": "^11.0.1",
40
40
  "@types/minizlib": "^2.1.4",
@@ -45,6 +45,6 @@
45
45
  "eslint": "^8.33.0",
46
46
  "eslint-config-prettier": "^8.6.0",
47
47
  "prettier": "^2.8.3",
48
- "typescript": "^4.9.5"
48
+ "typescript": "^5.1.6"
49
49
  }
50
50
  }