Skip to content

Commit

Permalink
Adding comment for future reference
Browse files Browse the repository at this point in the history
  • Loading branch information
eoftedal committed Oct 11, 2023
1 parent 2d1b209 commit 820b57b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/appLayerCreator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 820b57b

Please sign in to comment.