@@ -15,7 +15,6 @@ import (
15
15
"os/exec"
16
16
"os/signal"
17
17
"path/filepath"
18
- "strconv"
19
18
"strings"
20
19
"time"
21
20
"unicode"
@@ -389,15 +388,6 @@ func writeTmpDockerfile(helper langs.LangHelper, dir string, ff *FuncFile) (stri
389
388
dfLines = append (dfLines , fmt .Sprintf ("FROM %s" , ri ))
390
389
dfLines = append (dfLines , "WORKDIR /function" )
391
390
dfLines = append (dfLines , helper .DockerfileCopyCmds ()... )
392
-
393
- resources := ff .CopyResources
394
- for _ , resource := range resources {
395
- if Exists (resource .From ) {
396
- dfLines = append (dfLines , fmt .Sprintf ("COPY %s %s" , strconv .Quote (resource .From ), strconv .Quote (resource .To )))
397
- } else {
398
- return "" , errors .New (fmt .Sprintf ("Filepath %s does not exist" , resource .From ))
399
- }
400
- }
401
391
}
402
392
if ff .Entrypoint != "" {
403
393
dfLines = append (dfLines , fmt .Sprintf ("ENTRYPOINT [%s]" , stringToSlice (ff .Entrypoint )))
@@ -452,15 +442,6 @@ func writeTmpDockerfileV20180708(helper langs.LangHelper, dir string, ff *FuncFi
452
442
dfLines = append (dfLines , fmt .Sprintf ("FROM %s" , ri ))
453
443
dfLines = append (dfLines , "WORKDIR /function" )
454
444
dfLines = append (dfLines , helper .DockerfileCopyCmds ()... )
455
-
456
- resources := ff .CopyResources
457
- for _ , resource := range resources {
458
- if Exists (resource .From ) {
459
- dfLines = append (dfLines , fmt .Sprintf ("COPY %s %s" , strconv .Quote (resource .From ), strconv .Quote (resource .To )))
460
- } else {
461
- return "" , errors .New (fmt .Sprintf ("Filepath %s does not exist" , resource .From ))
462
- }
463
- }
464
445
}
465
446
if ff .Entrypoint != "" {
466
447
dfLines = append (dfLines , fmt .Sprintf ("ENTRYPOINT [%s]" , stringToSlice (ff .Entrypoint )))
0 commit comments