jonathanagustin commited on
Commit
8030564
·
verified ·
1 Parent(s): f349a12

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. app.py +3 -2
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # Builder worker using Kaniko for daemonless Docker builds
2
- FROM gcr.io/kaniko-project/executor:v1.23.2 AS kaniko
3
 
4
  FROM python:3.11-slim
5
 
 
1
  # Builder worker using Kaniko for daemonless Docker builds
2
+ FROM gcr.io/kaniko-project/executor:v1.24.0 AS kaniko
3
 
4
  FROM python:3.11-slim
5
 
app.py CHANGED
@@ -218,10 +218,11 @@ def build_and_push(
218
  }
219
 
220
  # Build Kaniko command
 
221
  cmd = [
222
  "/kaniko/executor",
223
  f"--context=dir://{context_dir}",
224
- f"--dockerfile={context_dir}/{dockerfile}",
225
  ]
226
 
227
  # Add destination tags
@@ -236,9 +237,9 @@ def build_and_push(
236
  # Kaniko options
237
  cmd.extend([
238
  "--cache=false", # Disabled due to HF Space network issues
239
- "--snapshot-mode=time", # Use mtime instead of checksums (faster)
240
  "--ignore-path=/product_uuid",
241
  "--ignore-path=/sys",
 
242
  ])
243
 
244
  log(f"Executing: {' '.join(cmd[:5])}...")
 
218
  }
219
 
220
  # Build Kaniko command
221
+ # Note: dockerfile path should be relative to context for multi-stage builds
222
  cmd = [
223
  "/kaniko/executor",
224
  f"--context=dir://{context_dir}",
225
+ f"--dockerfile={dockerfile}",
226
  ]
227
 
228
  # Add destination tags
 
237
  # Kaniko options
238
  cmd.extend([
239
  "--cache=false", # Disabled due to HF Space network issues
 
240
  "--ignore-path=/product_uuid",
241
  "--ignore-path=/sys",
242
+ "--verbosity=info",
243
  ])
244
 
245
  log(f"Executing: {' '.join(cmd[:5])}...")