Deprecate INSERT and COPY
This commit is contained in:
parent
56431d3130
commit
a4e6025cc1
1 changed files with 8 additions and 0 deletions
|
@ -152,6 +152,14 @@ func (b *buildFile) CmdExpose(args string) error {
|
|||
return b.commit("", b.config.Cmd, fmt.Sprintf("EXPOSE %v", ports))
|
||||
}
|
||||
|
||||
func (b *buildFile) CmdInsert(args string) error {
|
||||
return fmt.Errorf("INSERT has been deprecated. Please use ADD instead")
|
||||
}
|
||||
|
||||
func (b *buildFile) CmdCopy(args string) error {
|
||||
return fmt.Errorf("COPY has been deprecated. Please use ADD instead")
|
||||
}
|
||||
|
||||
func (b *buildFile) CmdAdd(args string) error {
|
||||
if b.context == "" {
|
||||
return fmt.Errorf("No context given. Impossible to use ADD")
|
||||
|
|
Loading…
Reference in a new issue