Merge pull request #3760 from jirkavrba/feat/optional-dockerfile-path

feat: Make dockerfile path optional and default to "Dockerfile"
This commit is contained in:
Mauricio Siu
2026-02-22 01:48:17 -06:00
committed by GitHub
6 changed files with 7472 additions and 9 deletions
@@ -74,12 +74,7 @@ const buildTypeDisplayMap: Record<BuildType, string> = {
const mySchema = z.discriminatedUnion("buildType", [ const mySchema = z.discriminatedUnion("buildType", [
z.object({ z.object({
buildType: z.literal(BuildType.dockerfile), buildType: z.literal(BuildType.dockerfile),
dockerfile: z dockerfile: z.string().nullable().default(""),
.string({
required_error: "Dockerfile path is required",
invalid_type_error: "Dockerfile path is required",
})
.min(1, "Dockerfile required"),
dockerContextPath: z.string().nullable().default(""), dockerContextPath: z.string().nullable().default(""),
dockerBuildStage: z.string().nullable().default(""), dockerBuildStage: z.string().nullable().default(""),
}), }),
@@ -347,7 +342,7 @@ export const ShowBuildChooseForm = ({ applicationId }: Props) => {
<FormLabel>Docker File</FormLabel> <FormLabel>Docker File</FormLabel>
<FormControl> <FormControl>
<Input <Input
placeholder="Path of your docker file" placeholder="Path of your docker file (default: Dockerfile)"
{...field} {...field}
value={field.value ?? ""} value={field.value ?? ""}
/> />
+1
View File
@@ -0,0 +1 @@
ALTER TABLE "application" ALTER COLUMN "dockerfile" SET DEFAULT 'Dockerfile';
File diff suppressed because it is too large Load Diff
+7
View File
@@ -1023,6 +1023,13 @@
"when": 1771447229358, "when": 1771447229358,
"tag": "0145_remarkable_titania", "tag": "0145_remarkable_titania",
"breakpoints": true "breakpoints": true
},
{
"idx": 146,
"version": "7",
"when": 1771670009325,
"tag": "0146_bumpy_morg",
"breakpoints": true
} }
] ]
} }
+1 -1
View File
@@ -159,7 +159,7 @@ export const applications = pgTable("application", {
}, },
), ),
enableSubmodules: boolean("enableSubmodules").notNull().default(false), enableSubmodules: boolean("enableSubmodules").notNull().default(false),
dockerfile: text("dockerfile"), dockerfile: text("dockerfile").default("Dockerfile"),
dockerContextPath: text("dockerContextPath"), dockerContextPath: text("dockerContextPath"),
dockerBuildStage: text("dockerBuildStage"), dockerBuildStage: text("dockerBuildStage"),
// Drop // Drop
@@ -127,7 +127,7 @@ export const getBuildAppDirectory = (application: Application) => {
appName, appName,
"code", "code",
buildPath ?? "", buildPath ?? "",
dockerfile || "", dockerfile || "Dockerfile",
); );
} }