You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: template/customization/base-image.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,20 +13,20 @@ When creating a template, you can specify options:
13
13
```typescript
14
14
const template =Template({
15
15
fileContextPath: ".", // Custom file context path
16
-
ignoreFilePatterns: [".git", "node_modules"], // File patterns to ignore
16
+
fileIgnorePatterns: [".git", "node_modules"], // File patterns to ignore
17
17
});
18
18
```
19
19
20
20
```python
21
21
template = Template(
22
22
file_context_path=".", # Custom file context path
23
-
ignore_file_patterns=[".git", "node_modules"], # File patterns to ignore
23
+
file_ignore_patterns=[".git", "node_modules"], # File patterns to ignore
24
24
)
25
25
```
26
26
27
27
</CodeGroup>
28
28
29
-
**File ignoring**: The SDK automatically reads `.dockerignore` files and combines them with your `ignoreFilePatterns`. Files matching these patterns are excluded from uploads and hash calculations.
29
+
**File ignoring**: The SDK automatically reads `.dockerignore` files and combines them with your `fileIgnorePatterns` (TypeScript) or `file_ignore_patterns` (Python). Files matching these patterns are excluded from uploads and hash calculations.
30
30
31
31
## Defining base image
32
32
Choose from predefined base images or use custom ones:
0 commit comments