@@ -7,13 +7,13 @@ import (
7
7
"bufio"
8
8
"bytes"
9
9
"fmt"
10
+ df "github.com/mintoolkit/mint/pkg/docker/dockerfile"
10
11
"io"
11
12
"regexp"
12
13
"strconv"
13
14
"strings"
14
15
"unicode"
15
16
16
- "github.com/mintoolkit/mint/pkg/docker/instruction"
17
17
"github.com/pkg/errors"
18
18
)
19
19
@@ -190,24 +190,24 @@ func init() {
190
190
// functions. Errors are propagated up by Parse() and the resulting AST can
191
191
// be incorporated directly into the existing AST as a next.
192
192
dispatch = map [string ]func (string , * Directive ) (* Node , map [string ]bool , error ){
193
- instruction . Add : parseMaybeJSONToList ,
194
- instruction . Arg : parseNameOrNameVal ,
195
- instruction . Cmd : parseMaybeJSON ,
196
- instruction . Copy : parseMaybeJSONToList ,
197
- instruction . Entrypoint : parseMaybeJSON ,
198
- instruction . Env : parseEnv ,
199
- instruction . Expose : parseStringsWhitespaceDelimited ,
200
- instruction . From : parseStringsWhitespaceDelimited ,
201
- instruction . Healthcheck : parseHealthConfig ,
202
- instruction . Label : parseLabel ,
203
- instruction . Maintainer : parseString ,
204
- instruction . Onbuild : parseSubCommand ,
205
- instruction . Run : parseMaybeJSON ,
206
- instruction . Shell : parseMaybeJSON ,
207
- instruction . StopSignal : parseString ,
208
- instruction . User : parseString ,
209
- instruction . Volume : parseMaybeJSONToList ,
210
- instruction . Workdir : parseString ,
193
+ df . InstTypeAdd : parseMaybeJSONToList ,
194
+ df . InstTypeArg : parseNameOrNameVal ,
195
+ df . InstTypeCmd : parseMaybeJSON ,
196
+ df . InstTypeCopy : parseMaybeJSONToList ,
197
+ df . InstTypeEntrypoint : parseMaybeJSON ,
198
+ df . InstTypeEnv : parseEnv ,
199
+ df . InstTypeExpose : parseStringsWhitespaceDelimited ,
200
+ df . InstTypeFrom : parseStringsWhitespaceDelimited ,
201
+ df . InstTypeHealthcheck : parseHealthConfig ,
202
+ df . InstTypeLabel : parseLabel ,
203
+ df . InstTypeMaintainer : parseString ,
204
+ df . InstTypeOnbuild : parseSubCommand ,
205
+ df . InstTypeRun : parseMaybeJSON ,
206
+ df . InstTypeShell : parseMaybeJSON ,
207
+ df . InstTypeStopSignal : parseString ,
208
+ df . InstTypeUser : parseString ,
209
+ df . InstTypeVolume : parseMaybeJSONToList ,
210
+ df . InstTypeWorkdir : parseString ,
211
211
}
212
212
}
213
213
0 commit comments