Update competitions/utils.py
Browse files- 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 |
|