spacey-cadet commited on
Commit
fd114d3
·
1 Parent(s): 20b52dd

fix: update Dockerfile.lambda to include shebang in RUN command for Python script execution

Browse files
infra/aws-serverless/Dockerfile.lambda CHANGED
@@ -53,7 +53,8 @@ ENV CACHE_DIR=${LAMBDA_TASK_ROOT}/model_cache
53
  # at BUILD time, so a broken checkpoint fails the build, not a live
54
  # Lambda. revision is always "main" — config.py's Settings has no
55
  # separate revision field, so the champion is whatever's on main.
56
- RUN python3 << 'EOF'
 
57
  import os, sys, traceback
58
  sys.path.insert(0, os.environ['LAMBDA_TASK_ROOT'])
59
  try:
 
53
  # at BUILD time, so a broken checkpoint fails the build, not a live
54
  # Lambda. revision is always "main" — config.py's Settings has no
55
  # separate revision field, so the champion is whatever's on main.
56
+ RUN <<EOF
57
+ #!/usr/bin/env python3
58
  import os, sys, traceback
59
  sys.path.insert(0, os.environ['LAMBDA_TASK_ROOT'])
60
  try: