From dbc1396fa6ae352bc7bd361ebd0fdd9930969102 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Sat, 6 Dec 2025 19:06:53 -0600 Subject: [PATCH] refactor(docker): remove unused environment file command generation and simplify Docker command construction --- .../server/src/utils/builders/docker-file.ts | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/packages/server/src/utils/builders/docker-file.ts b/packages/server/src/utils/builders/docker-file.ts index 8ca99ccf2..9e759264d 100644 --- a/packages/server/src/utils/builders/docker-file.ts +++ b/packages/server/src/utils/builders/docker-file.ts @@ -8,7 +8,6 @@ import { getDockerContextPath, } from "../filesystem/directory"; import type { ApplicationNested } from "."; -import { createEnvFileCommand } from "./utils"; export const getDockerCommand = (application: ApplicationNested) => { const { @@ -68,21 +67,7 @@ export const getDockerCommand = (application: ApplicationNested) => { commandArgs.push("--secret", `type=env,id=${key}`); } - /* - Do not generate an environment file when publishDirectory is specified, - as it could be publicly exposed. - */ - let command = ""; - if (!publishDirectory) { - command += createEnvFileCommand( - dockerFilePath, - env, - application.environment.project.env, - application.environment.env, - ); - } - - command += ` + const command = ` echo "Building ${appName}" ; cd ${dockerContextPath} || { echo "❌ The path ${dockerContextPath} does not exist" ;