Libra-1995 commited on
Commit
2d8e9b4
·
verified ·
1 Parent(s): 03d4a14

Update competitions/utils.py

Browse files
Files changed (1) hide show
  1. competitions/utils.py +1 -1
competitions/utils.py CHANGED
@@ -855,7 +855,7 @@ class DockerfileModifier:
855
  line = line.strip()
856
 
857
  # 匹配 CMD 或 ENTRYPOINT
858
- cmd_match = re.match(r'^(CMD|ENTRYPOINT)\s+(.+)$', line, re.IGNORECASE)
859
  if not cmd_match:
860
  return "", "", ""
861
 
 
855
  line = line.strip()
856
 
857
  # 匹配 CMD 或 ENTRYPOINT
858
+ cmd_match = re.match(r'^(CMD|ENTRYPOINT|ADD|COPY)\s+(.+)$', line, re.IGNORECASE)
859
  if not cmd_match:
860
  return "", "", ""
861