diff --git a/apps/dokploy/components/dashboard/application/build/show.tsx b/apps/dokploy/components/dashboard/application/build/show.tsx index 2adaa6aaf..4bd4ddd7b 100644 --- a/apps/dokploy/components/dashboard/application/build/show.tsx +++ b/apps/dokploy/components/dashboard/application/build/show.tsx @@ -109,7 +109,7 @@ export const ShowBuildChooseForm = ({ applicationId }: Props) => { dockerContextPath: data.buildType === "dockerfile" ? data.dockerContextPath : null, dockerBuildStage: - data.buildType === "dockerfile" ? data.dockerBuildStage : null, + data.buildType === "dockerfile" ? data.dockerBuildStage : null, }) .then(async () => { toast.success("Build type saved"); @@ -255,22 +255,20 @@ export const ShowBuildChooseForm = ({ applicationId }: Props) => {
Docker Build Stage - Allows you to target a specific stage in a Multi-stage - Dockerfile. If empty, Docker defaults to build - the last defined stage. + Allows you to target a specific stage in a + Multi-stage Dockerfile. If empty, Docker defaults to + build the last defined stage.
- ) + ); }} /> diff --git a/apps/dokploy/server/utils/builders/docker-file.ts b/apps/dokploy/server/utils/builders/docker-file.ts index b50be9042..8a1962c9c 100644 --- a/apps/dokploy/server/utils/builders/docker-file.ts +++ b/apps/dokploy/server/utils/builders/docker-file.ts @@ -12,7 +12,8 @@ export const buildCustomDocker = async ( application: ApplicationNested, writeStream: WriteStream, ) => { - const { appName, env, publishDirectory, buildArgs, dockerBuildStage } = application; + const { appName, env, publishDirectory, buildArgs, dockerBuildStage } = + application; const dockerFilePath = getBuildAppDirectory(application); try { const image = `${appName}`; @@ -25,7 +26,7 @@ export const buildCustomDocker = async ( const commandArgs = ["build", "-t", image, "-f", dockerFilePath, "."]; - if (!!dockerBuildStage) { + if (dockerBuildStage) { commandArgs.push("--target", dockerBuildStage); }