Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -255,9 +255,10 @@ def build_and_push(
|
|
| 255 |
for key, value in build_args.items():
|
| 256 |
cmd.append(f"--build-arg={key}={value}")
|
| 257 |
|
| 258 |
-
# Kaniko options
|
| 259 |
cmd.extend([
|
| 260 |
"--cache=false",
|
|
|
|
| 261 |
"--ignore-path=/product_uuid",
|
| 262 |
"--ignore-path=/sys",
|
| 263 |
])
|
|
@@ -367,9 +368,10 @@ def build_and_push_git(
|
|
| 367 |
for key, value in build_args.items():
|
| 368 |
cmd.append(f"--build-arg={key}={value}")
|
| 369 |
|
| 370 |
-
# Kaniko options
|
| 371 |
cmd.extend([
|
| 372 |
"--cache=false",
|
|
|
|
| 373 |
"--ignore-path=/product_uuid",
|
| 374 |
"--ignore-path=/sys",
|
| 375 |
])
|
|
|
|
| 255 |
for key, value in build_args.items():
|
| 256 |
cmd.append(f"--build-arg={key}={value}")
|
| 257 |
|
| 258 |
+
# Kaniko options - single-snapshot bypasses context file analysis bugs
|
| 259 |
cmd.extend([
|
| 260 |
"--cache=false",
|
| 261 |
+
"--single-snapshot",
|
| 262 |
"--ignore-path=/product_uuid",
|
| 263 |
"--ignore-path=/sys",
|
| 264 |
])
|
|
|
|
| 368 |
for key, value in build_args.items():
|
| 369 |
cmd.append(f"--build-arg={key}={value}")
|
| 370 |
|
| 371 |
+
# Kaniko options - single-snapshot bypasses context file analysis bugs
|
| 372 |
cmd.extend([
|
| 373 |
"--cache=false",
|
| 374 |
+
"--single-snapshot",
|
| 375 |
"--ignore-path=/product_uuid",
|
| 376 |
"--ignore-path=/sys",
|
| 377 |
])
|