소스 검색

Fix issue with ADD

Guillaume J. Charmes 12 년 전
부모
커밋
f03ebc20aa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      buildfile.go

+ 1 - 1
buildfile.go

@@ -221,6 +221,7 @@ func (b *buildFile) CmdAdd(args string) error {
 	cmd := b.config.Cmd
 	b.config.Cmd = []string{"/bin/sh", "-c", fmt.Sprintf("#(nop) ADD %s in %s", orig, dest)}
 
+	b.config.Image = b.image
 	// Create the container and start it
 	container, err := b.builder.Create(b.config)
 	if err != nil {
@@ -297,7 +298,6 @@ func (b *buildFile) commit(id string, autoCmd []string, comment string) error {
 		} else {
 			utils.Debugf("[BUILDER] Cache miss")
 		}
-
 		container, err := b.builder.Create(b.config)
 		if err != nil {
 			return err