Skip to content

Commit 98f2bc8

Browse files
committed
Fix docker build regression
1 parent 2c93845 commit 98f2bc8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/leeway/build.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,13 +1158,14 @@ func (p *Package) buildDocker(buildctx *buildContext, wd, result string) (res *p
11581158
if cfg.Dockerfile == "" {
11591159
return nil, xerrors.Errorf("dockerfile is required")
11601160
}
1161+
11611162
dockerfile := filepath.Join(p.C.Origin, cfg.Dockerfile)
11621163
if _, err := os.Stat(dockerfile); os.IsNotExist(err) {
11631164
return nil, err
11641165
}
11651166

11661167
var buildCommands [][]string
1167-
buildCommands = append(buildCommands, []string{"cp", cfg.Dockerfile, "Dockerfile"})
1168+
buildCommands = append(buildCommands, []string{"cp", dockerfile, "Dockerfile"})
11681169
for _, dep := range p.GetDependencies() {
11691170
fn, exists := buildctx.LocalCache.Location(dep)
11701171
if !exists {

0 commit comments

Comments
 (0)