From 820b57b7538309926051c42e1317f2fb5cf0e90f Mon Sep 17 00:00:00 2001 From: Erlend Oftedal Date: Wed, 11 Oct 2023 14:13:58 +0200 Subject: [PATCH] Adding comment for future reference --- src/appLayerCreator.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/appLayerCreator.ts b/src/appLayerCreator.ts index d9126b9..309e020 100644 --- a/src/appLayerCreator.ts +++ b/src/appLayerCreator.ts @@ -186,6 +186,9 @@ function parseCommandLineToParts(entrypoint: string) { async function addAppLayers(options: Options, config: Config, todir: string, manifest: Manifest, tmpdir: string) { if (options.customContent.length > 0) { + // We only add these values if they have been explicitely set for customContent. This allows customContent + // to be used to add compiled frontend code to an nginx container without also modifying the entrypoint, user, + // and workdir. if (options.nonDefaults.workdir) await addWorkdirLayer(options, config, options.nonDefaults.workdir); if (options.nonDefaults.entrypoint) await addEntrypointLayer(options, config, options.nonDefaults.entrypoint); if (options.nonDefaults.user) await addUserLayer(options, config, options.nonDefaults.user);